28 #ifndef vtkGlyph3DMapper_h
29 #define vtkGlyph3DMapper_h
33 #include "vtkRenderingCoreModule.h"
36 VTK_ABI_NAMESPACE_BEGIN
64 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
155 vtkGetVectorMacro(
Range,
double, 2);
164 vtkSetMacro(Orient,
bool);
165 vtkGetMacro(Orient,
bool);
166 vtkBooleanMacro(Orient,
bool);
175 vtkSetClampMacro(OrientationMode,
int, DIRECTION, QUATERNION);
176 vtkGetMacro(OrientationMode,
int);
194 vtkSetMacro(Clamping,
bool);
195 vtkGetMacro(Clamping,
bool);
196 vtkBooleanMacro(Clamping,
bool);
206 vtkSetMacro(SourceIndexing,
bool);
207 vtkGetMacro(SourceIndexing,
bool);
208 vtkBooleanMacro(SourceIndexing,
bool);
217 vtkSetMacro(UseSourceTableTree,
bool);
218 vtkGetMacro(UseSourceTableTree,
bool);
219 vtkBooleanMacro(UseSourceTableTree,
bool);
226 vtkSetMacro(UseSelectionIds,
bool);
227 vtkBooleanMacro(UseSelectionIds,
bool);
228 vtkGetMacro(UseSelectionIds,
bool);
255 vtkSetMacro(Masking,
bool);
256 vtkGetMacro(Masking,
bool);
257 vtkBooleanMacro(Masking,
bool);
380 vtkSetMacro(SelectionColorId,
unsigned int);
381 vtkGetMacro(SelectionColorId,
unsigned int);
403 vtkSetMacro(CullingAndLOD,
bool);
404 vtkGetMacro(CullingAndLOD,
bool);
432 vtkIdType vtkNotUsed(
index),
float vtkNotUsed(distance),
float vtkNotUsed(targetReduction))
440 vtkSetMacro(LODColoring,
bool);
441 vtkGetMacro(LODColoring,
bool);
493 bool CullingAndLOD =
false;
494 std::vector<std::pair<float, float>>
LODs;
495 bool LODColoring =
false;
504 bool GetBoundsInternal(
vtkDataSet* ds,
double ds_bounds[6]);
507 VTK_ABI_NAMESPACE_END
represents an object (geometry & properties) in a rendered scene
Proxy object to connect input/output ports.
Rendering attributes for a multi-block dataset.
abstract superclass for arrays of numeric data
provides implementation for most abstract methods in the superclass vtkCompositeDataSet
general representation of visualization data
abstract class to specify dataset behavior
void SetOrientationModeToQuaternion()
Orientation mode indicates if the OrientationArray provides the direction vector for the orientation ...
vtkDataArray * GetSourceIndexArray(vtkDataSet *input)
Convenience methods to get each of the arrays.
vtkPolyData * GetSource(int idx, vtkInformationVector *sourceInfo)
virtual vtkIdType GetMaxNumberOfLOD()
Get the maximum number of LOD.
void SetScaleModeToScaleByVectorComponents()
vtkPolyData * GetSource(int idx=0)
Get a pointer to a source object at a specified table location.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
~vtkGlyph3DMapper() override
void SetSourceData(vtkPolyData *pd)
Set the source to use for he glyph.
void SetSourceData(int idx, vtkPolyData *pd)
Specify a source object at a specified table location.
vtkDataArray * GetMaskArray(vtkDataSet *input)
Convenience methods to get each of the arrays.
void SetMaskArray(const char *maskarrayname)
Set the name of the point array to use as a mask for generating the glyphs.
void SetSourceConnection(int idx, vtkAlgorithmOutput *algOutput)
Specify a source object at a specified table location.
void SetScaleModeToScaleByMagnitude()
virtual int RequestUpdateExtent(vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *outInfo)
void SetScaleArray(int fieldAttributeType)
Convenience method to set the array to scale with.
void SetSourceIndexArray(const char *arrayname)
Convenience method to set the array to use as index within the sources.
vtkCompositeDataDisplayAttributes * BlockAttributes
void SetInputData(vtkDataObject *)
Assign a data object as input.
vtkDataArray * GetScaleArray(vtkDataSet *input)
Convenience methods to get each of the arrays.
void SetScaleModeToNoDataScaling()
virtual void SetNumberOfLOD(vtkIdType vtkNotUsed(nb))
Set the number of LOD.
vtkDataArray * GetSelectionIdArray(vtkDataSet *input)
Convenience methods to get each of the arrays.
void SetOrientationArray(int fieldAttributeType)
Tells the mapper to use an orientation array if Orient is true.
void SetOrientationArray(const char *orientationarrayname)
Tells the mapper to use an orientation array if Orient is true.
void SetSelectionIdArray(int fieldAttributeType)
Convenience method to set the array used for selection IDs.
unsigned int SelectionColorId
void SetSourceConnection(vtkAlgorithmOutput *algOutput)
vtkDataArray * GetOrientationArray(vtkDataSet *input)
Convenience methods to get each of the arrays.
const char * GetOrientationModeAsString()
Orientation mode indicates if the OrientationArray provides the direction vector for the orientation ...
void SetOrientationModeToDirection()
Orientation mode indicates if the OrientationArray provides the direction vector for the orientation ...
const char * GetScaleModeAsString()
virtual void SetBlockAttributes(vtkCompositeDataDisplayAttributes *attr)
When the input data object (not the source) is composite data, it is possible to control visibility a...
double * GetBounds() override
Redefined to take into account the bounds of the scaled glyphs.
std::vector< std::pair< float, float > > LODs
static vtkGlyph3DMapper * New()
void Render(vtkRenderer *ren, vtkActor *act) override
All the work is done is derived classes.
void SetMaskArray(int fieldAttributeType)
Set the point attribute to use as a mask for generating the glyphs.
vtkUnsignedCharArray * GetColors(vtkDataSet *input)
Convenience methods to get each of the arrays.
bool GetSupportsSelection() override
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THIS METHOD OUTSIDE OF THE RENDERI...
void SetOrientationModeToRotation()
Orientation mode indicates if the OrientationArray provides the direction vector for the orientation ...
vtkPolyData * GetSourceTable(int idx, vtkInformationVector *sourceInfo)
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
void GetBounds(double bounds[6]) override
Same as superclass.
void SetSelectionIdArray(const char *selectionIdArrayName)
Convenience method to set the array used for selection IDs.
void SetSourceTableTree(vtkDataObjectTree *tree)
Specify a data object tree that will be used for the source table.
void SetScaleArray(const char *scalarsarrayname)
Convenience method to set the array to scale with.
void SetSourceIndexArray(int fieldAttributeType)
Convenience method to set the array to use as index within the sources.
vtkDataObjectTree * GetSourceTableTree()
Convenience method to get the source table tree, if it exists.
virtual void SetLODDistanceAndTargetReduction(vtkIdType vtkNotUsed(index), float vtkNotUsed(distance), float vtkNotUsed(targetReduction))
Configure LODs.
a simple class to control print indentation
abstract class specifies interface to map data to graphics primitives
concrete dataset represents vertices, lines, polygons, and triangle strips
abstract specification for renderers
dynamic, self-adjusting array of unsigned char
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.