 |
VTK
9.0.1
|
Go to the documentation of this file.
28 #ifndef vtkGlyph3DMapper_h
29 #define vtkGlyph3DMapper_h
33 #include "vtkRenderingCoreModule.h"
63 this->SetSourceConnection(0, algOutput);
112 vtkSetMacro(Scaling,
bool);
113 vtkBooleanMacro(Scaling,
bool);
114 vtkGetMacro(Scaling,
bool);
124 vtkSetMacro(ScaleMode,
int);
125 vtkGetMacro(ScaleMode,
int);
133 vtkSetMacro(ScaleFactor,
double);
134 vtkGetMacro(ScaleFactor,
double);
140 SCALE_BY_MAGNITUDE = 1,
141 SCALE_BY_COMPONENTS = 2
154 vtkGetVectorMacro(
Range,
double, 2);
163 vtkSetMacro(Orient,
bool);
164 vtkGetMacro(Orient,
bool);
165 vtkBooleanMacro(Orient,
bool);
174 vtkSetClampMacro(OrientationMode,
int, DIRECTION, QUATERNION);
175 vtkGetMacro(OrientationMode,
int);
193 vtkSetMacro(Clamping,
bool);
194 vtkGetMacro(Clamping,
bool);
195 vtkBooleanMacro(Clamping,
bool);
205 vtkSetMacro(SourceIndexing,
bool);
206 vtkGetMacro(SourceIndexing,
bool);
207 vtkBooleanMacro(SourceIndexing,
bool);
216 vtkSetMacro(UseSourceTableTree,
bool);
217 vtkGetMacro(UseSourceTableTree,
bool);
218 vtkBooleanMacro(UseSourceTableTree,
bool);
225 vtkSetMacro(UseSelectionIds,
bool);
226 vtkBooleanMacro(UseSelectionIds,
bool);
227 vtkGetMacro(UseSelectionIds,
bool);
254 vtkSetMacro(Masking,
bool);
255 vtkGetMacro(Masking,
bool);
256 vtkBooleanMacro(Masking,
bool);
379 vtkSetMacro(SelectionColorId,
unsigned int);
380 vtkGetMacro(SelectionColorId,
unsigned int);
402 vtkSetMacro(CullingAndLOD,
bool);
403 vtkGetMacro(CullingAndLOD,
bool);
431 vtkIdType vtkNotUsed(
index),
float vtkNotUsed(distance),
float vtkNotUsed(targetReduction))
439 vtkSetMacro(LODColoring,
bool);
440 vtkGetMacro(LODColoring,
bool);
492 bool CullingAndLOD =
false;
493 std::vector<std::pair<float, float> >
LODs;
494 bool LODColoring =
false;
503 bool GetBoundsInternal(
vtkDataSet* ds,
double ds_bounds[6]);
void SetMaskArray(int fieldAttributeType)
Set the point attribute to use as a mask for generating the glyphs.
auto Range(IterablePtr iterable, Options &&... opts) -> typename detail::IterableTraits< typename detail::StripPointers< IterablePtr >::type >::RangeType
Generate an iterable STL proxy object for a VTK container.
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)
virtual vtkIdType GetMaxNumberOfLOD()
Get the maximum number of LOD.
const char * GetOrientationModeAsString()
void SetSourceData(int idx, vtkPolyData *pd)
Specify a source object at a specified table location.
void SetMaskArray(const char *maskarrayname)
Set the name of the point array to use as a mask for generating the glyphs.
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.
double * GetBounds() override
Redefined to take into account the bounds of the scaled glyphs.
vtkPolyData * GetSource(int idx, vtkInformationVector *sourceInfo)
abstract superclass for arrays of numeric data
void SetSelectionIdArray(int fieldAttributeType)
Convenience method to set the array used for selection IDs.
void SetSourceData(vtkPolyData *pd)
Set the source to use for he glyph.
vtkCompositeDataDisplayAttributes * BlockAttributes
void SetOrientationArray(const char *orientationarrayname)
Tells the mapper to use an orientation array if Orient is true.
vtkUnsignedCharArray * GetColors(vtkDataSet *input)
void SetScaleModeToScaleByMagnitude()
Rendering attributes for a multi-block dataset.
vtkDataArray * GetSelectionIdArray(vtkDataSet *input)
void SetScaleArray(const char *scalarsarrayname)
Convenience method to set the array to scale with.
void SetScaleModeToNoDataScaling()
void SetScaleArray(int fieldAttributeType)
Convenience method to set the array to scale with.
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)
void SetSelectionIdArray(const char *selectionIdArrayName)
Convenience method to set the array used for selection IDs.
std::vector< std::pair< float, float > > LODs
abstract class to specify dataset behavior
static vtkGlyph3DMapper * New()
void GetBounds(double bounds[6]) override
Same as superclass.
void Render(vtkRenderer *ren, vtkActor *act) override
All the work is done is derived classes.
void SetSourceIndexArray(int fieldAttributeType)
Convenience method to set the array to use as index within the sources.
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
void SetOrientationArray(int fieldAttributeType)
Tells the mapper to use an orientation array if Orient is true.
~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.
virtual void SetBlockAttributes(vtkCompositeDataDisplayAttributes *attr)
When the input data object (not the source) is composite data, it is possible to control visibility a...
const char * GetScaleModeAsString()
virtual void SetNumberOfLOD(vtkIdType vtkNotUsed(nb))
Set the number of LOD.
void SetSourceIndexArray(const char *arrayname)
Convenience method to set the array to use as index within the sources.