Go to the documentation of this file.
31 #ifndef vtkGlyph3DMapper_h
32 #define vtkGlyph3DMapper_h
34 #include "vtkRenderingCoreModule.h"
65 { this->SetSourceConnection(0, algOutput); }
113 vtkSetMacro(Scaling,
bool);
114 vtkBooleanMacro(Scaling,
bool);
115 vtkGetMacro(Scaling,
bool);
125 vtkSetMacro(ScaleMode,
int);
126 vtkGetMacro(ScaleMode,
int);
134 vtkSetMacro(ScaleFactor,
double);
135 vtkGetMacro(ScaleFactor,
double);
141 SCALE_BY_MAGNITUDE = 1,
142 SCALE_BY_COMPONENTS = 2
146 { this->SetScaleMode(SCALE_BY_MAGNITUDE); }
148 { this->SetScaleMode(SCALE_BY_COMPONENTS); }
150 { this->SetScaleMode(NO_DATA_SCALING); }
157 vtkSetVector2Macro(Range,
double);
158 vtkGetVectorMacro(Range,
double, 2);
167 vtkSetMacro(Orient,
bool);
168 vtkGetMacro(Orient,
bool);
169 vtkBooleanMacro(Orient,
bool);
178 vtkSetClampMacro(OrientationMode,
int, DIRECTION, QUATERNION);
179 vtkGetMacro(OrientationMode,
int);
200 vtkSetMacro(Clamping,
bool);
201 vtkGetMacro(Clamping,
bool);
202 vtkBooleanMacro(Clamping,
bool);
212 vtkSetMacro(SourceIndexing,
bool);
213 vtkGetMacro(SourceIndexing,
bool);
214 vtkBooleanMacro(SourceIndexing,
bool);
223 vtkSetMacro(UseSourceTableTree,
bool)
224 vtkGetMacro(UseSourceTableTree,
bool)
225 vtkBooleanMacro(UseSourceTableTree,
bool)
232 vtkSetMacro(UseSelectionIds,
bool);
233 vtkBooleanMacro(UseSelectionIds,
bool);
234 vtkGetMacro(UseSelectionIds,
bool);
240 double *GetBounds() override;
245 void GetBounds(
double bounds[6]) override;
261 vtkSetMacro(Masking,
bool);
262 vtkGetMacro(Masking,
bool);
263 vtkBooleanMacro(Masking,
bool);
272 void SetMaskArray(const
char* maskarrayname);
286 void SetMaskArray(
int fieldAttributeType);
303 void SetOrientationArray(const
char* orientationarrayname);
326 void SetOrientationArray(
int fieldAttributeType);
333 void SetScaleArray(const
char* scalarsarrayname);
340 void SetScaleArray(
int fieldAttributeType);
348 void SetSourceIndexArray(const
char* arrayname);
356 void SetSourceIndexArray(
int fieldAttributeType);
367 void SetSelectionIdArray(const
char* selectionIdArrayName);
378 void SetSelectionIdArray(
int fieldAttributeType);
386 vtkSetMacro(SelectionColorId,
unsigned int);
387 vtkGetMacro(SelectionColorId,
unsigned int);
409 vtkSetMacro(CullingAndLOD,
bool);
410 vtkGetMacro(CullingAndLOD,
bool);
425 virtual
void SetNumberOfLOD(
vtkIdType vtkNotUsed(nb)) {}
439 float vtkNotUsed(distance),
440 float vtkNotUsed(targetReduction)) {}
446 vtkSetMacro(LODColoring,
bool);
447 vtkGetMacro(LODColoring,
bool);
501 bool CullingAndLOD =
false;
502 std::vector<std::pair<float, float> >
LODs;
503 bool LODColoring =
false;
512 bool GetBoundsInternal(
vtkDataSet* ds,
double ds_bounds[6]);
void SetScaleModeToScaleByVectorComponents()
void SetSourceConnection(int idx, vtkAlgorithmOutput *algOutput)
Specify a source object at a specified table location.
virtual int RequestUpdateExtent(vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *outInfo)
provides implementation for most abstract methods in the superclass vtkCompositeDataSet
vtkDataArray * GetOrientationArray(vtkDataSet *input)
const char * GetOrientationModeAsString()
void SetSourceData(int idx, vtkPolyData *pd)
Specify a source object at a specified table location.
vtkPolyData * GetSource(int idx=0)
Get a pointer to a source object at a specified table location.
bool GetSupportsSelection() override
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THIS METHOD OUTSIDE OF THE RENDERI...
dynamic, self-adjusting array of unsigned char
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkDataArray * GetSourceIndexArray(vtkDataSet *input)
void SetInputData(vtkDataObject *)
Assign a data object as input.
vtkPolyData * GetSource(int idx, vtkInformationVector *sourceInfo)
abstract superclass for arrays of numeric data
void SetSourceData(vtkPolyData *pd)
Set the source to use for he glyph.
vtkCompositeDataDisplayAttributes * BlockAttributes
vtkUnsignedCharArray * GetColors(vtkDataSet *input)
void SetScaleModeToScaleByMagnitude()
Rendering attributes for a multi-block dataset.
vtkDataArray * GetSelectionIdArray(vtkDataSet *input)
void SetScaleModeToNoDataScaling()
void SetOrientationModeToQuaternion()
abstract class specifies interface to map data to graphics primitives
unsigned int SelectionColorId
virtual void SetLODDistanceAndTargetReduction(vtkIdType vtkNotUsed(index), float vtkNotUsed(distance), float vtkNotUsed(targetReduction))
Configure LODs.
represents an object (geometry & properties) in a rendered scene
a simple class to control print indentation
vtkDataArray * GetScaleArray(vtkDataSet *input)
std::vector< std::pair< float, float > > LODs
abstract class to specify dataset behavior
static vtkGlyph3DMapper * New()
Proxy object to connect input/output ports.
vtkDataObjectTree * GetSourceTableTree()
Convenience method to get the source table tree, if it exists.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
abstract specification for renderers
~vtkGlyph3DMapper() override
void SetSourceTableTree(vtkDataObjectTree *tree)
Specify a data object tree that will be used for the source table.
concrete dataset represents vertices, lines, polygons, and triangle strips
vtkPolyData * GetSourceTable(int idx, vtkInformationVector *sourceInfo)
void SetOrientationModeToRotation()
void SetSourceConnection(vtkAlgorithmOutput *algOutput)
void SetOrientationModeToDirection()
general representation of visualization data
vtkDataArray * GetMaskArray(vtkDataSet *input)
Convenience methods to get each of the arrays.
const char * GetScaleModeAsString()