ParaView
|
vtkGlyph3DRepresentation is a representation that uses the vtkGlyph3DMapper for rendering glyphs. More...
#include <vtkGlyph3DRepresentation.h>
Public Types | |
typedef vtkGeometryRepresentation | Superclass |
![]() | |
enum | RepresentationTypes { POINTS = VTK_POINTS, WIREFRAME = VTK_WIREFRAME, SURFACE = VTK_SURFACE, SURFACE_WITH_EDGES = 3 } |
typedef vtkPVDataRepresentation | Superclass |
![]() | |
typedef vtkDataRepresentation | Superclass |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual int | ProcessViewRequest (vtkInformationRequestKey *request_type, vtkInformation *inInfo, vtkInformation *outInfo) |
vtkAlgorithm::ProcessRequest() equivalent for rendering passes. More... | |
void | SetMeshVisibility (bool visible) |
Toggle the visibility of the original mesh. More... | |
virtual void | SetVisibility (bool) |
Get/Set the visibility for this representation. More... | |
void | SetMaskArray (const char *val) |
void | SetScaleArray (const char *val) |
void | SetOrientationArray (const char *val) |
void | SetScaling (bool val) |
void | SetScaleMode (int val) |
void | SetScaleFactor (double val) |
void | SetOrient (bool val) |
void | SetOrientationMode (int val) |
void | SetMasking (bool val) |
virtual void | SetInterpolateScalarsBeforeMapping (int val) |
virtual void | SetLookupTable (vtkScalarsToColors *val) |
virtual void | SetMapScalars (int val) |
Sets if scalars are mapped through a color-map or are used directly as colors. More... | |
virtual void | SetStatic (int val) |
Sets if scalars are mapped through a color-map or are used directly as colors. More... | |
virtual void | SetOrientation (double, double, double) |
virtual void | SetOrigin (double, double, double) |
virtual void | SetPickable (int val) |
virtual void | SetPosition (double, double, double) |
virtual void | SetScale (double, double, double) |
virtual void | SetTexture (vtkTexture *) |
virtual void | SetUserTransform (const double[16]) |
![]() | |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual void | MarkModified () |
This needs to be called on all instances of vtkGeometryRepresentation when the input is modified. More... | |
virtual void | SetSuppressLOD (bool suppress) |
Enable/Disable LOD;. More... | |
virtual void | SetRepresentation (const char *) |
Overload to set representation type using string. More... | |
virtual vtkDataObject * | GetRenderedDataObject (int port) |
Returns the data object that is rendered from the given input port. More... | |
virtual void | SetUseOutline (int) |
void | SetTriangulate (int) |
void | SetNonlinearSubdivisionLevel (int) |
virtual void | SetAmbientColor (double r, double g, double b) |
virtual void | SetColor (double r, double g, double b) |
virtual void | SetDiffuseColor (double r, double g, double b) |
virtual void | SetEdgeColor (double r, double g, double b) |
virtual void | SetInterpolation (int val) |
virtual void | SetLineWidth (double val) |
virtual void | SetOpacity (double val) |
virtual void | SetPointSize (double val) |
virtual void | SetSpecularColor (double r, double g, double b) |
virtual void | SetSpecularPower (double val) |
vtkPVLODActor * | GetActor () |
Provides access to the actor used by this representation. More... | |
const char * | GetColorArrayName () |
Convenience method to get the array name used to scalar color with. More... | |
void | SetBlockColorsDistinctValues (int distinctValues) |
Determines the number of distinct values in vtkBlockColors See also vtkPVGeometryFilter. More... | |
int | GetBlockColorsDistinctValues () |
Determines the number of distinct values in vtkBlockColors See also vtkPVGeometryFilter. More... | |
virtual void | SetAmbient (double) |
Set the lighting properties of the object. More... | |
virtual void | SetDiffuse (double) |
Set the lighting properties of the object. More... | |
virtual void | SetSpecular (double) |
Set the lighting properties of the object. More... | |
virtual double | GetAmbient () |
Set the lighting properties of the object. More... | |
virtual double | GetDiffuse () |
Set the lighting properties of the object. More... | |
virtual double | GetSpecular () |
Set the lighting properties of the object. More... | |
virtual void | SetRepresentation (int) |
Set the representation type. More... | |
virtual int | GetRepresentation () |
Set the representation type. More... | |
virtual void | SetRequestGhostCellsIfNeeded (bool) |
Representations that use geometry representation as the internal representation should turn this flag off so that we don't end up requesting ghost cells twice. More... | |
virtual bool | GetRequestGhostCellsIfNeeded () |
Representations that use geometry representation as the internal representation should turn this flag off so that we don't end up requesting ghost cells twice. More... | |
virtual void | RequestGhostCellsIfNeededOn () |
Representations that use geometry representation as the internal representation should turn this flag off so that we don't end up requesting ghost cells twice. More... | |
virtual void | RequestGhostCellsIfNeededOff () |
Representations that use geometry representation as the internal representation should turn this flag off so that we don't end up requesting ghost cells twice. More... | |
virtual void | SetBlockVisibility (unsigned int index, bool visible) |
Set/get the visibility for a single block. More... | |
virtual bool | GetBlockVisibility (unsigned int index) const |
Set/get the visibility for a single block. More... | |
virtual void | RemoveBlockVisibility (unsigned int index, bool=true) |
Set/get the visibility for a single block. More... | |
virtual void | RemoveBlockVisibilities () |
Set/get the visibility for a single block. More... | |
virtual void | SetBlockColor (unsigned int index, double r, double g, double b) |
Set/get the color for a single block. More... | |
virtual void | SetBlockColor (unsigned int index, double *color) |
Set/get the color for a single block. More... | |
virtual double * | GetBlockColor (unsigned int index) |
Set/get the color for a single block. More... | |
virtual void | RemoveBlockColor (unsigned int index) |
Set/get the color for a single block. More... | |
virtual void | RemoveBlockColors () |
Set/get the color for a single block. More... | |
virtual void | SetBlockOpacity (unsigned int index, double opacity) |
Set/get the opacityfor a single block. More... | |
virtual void | SetBlockOpacity (unsigned int index, double *opacity) |
Set/get the opacityfor a single block. More... | |
virtual double | GetBlockOpacity (unsigned int index) |
Set/get the opacityfor a single block. More... | |
virtual void | RemoveBlockOpacity (unsigned int index) |
Set/get the opacityfor a single block. More... | |
virtual void | RemoveBlockOpacities () |
Set/get the opacityfor a single block. More... | |
virtual void | SetEnableScaling (int v) |
For OSPRay controls sizing of implicit spheres (points) and cylinders (lines) More... | |
virtual void | SetScalingArrayName (const char *) |
For OSPRay controls sizing of implicit spheres (points) and cylinders (lines) More... | |
virtual void | SetScalingFunction (vtkPiecewiseFunction *pwf) |
For OSPRay controls sizing of implicit spheres (points) and cylinders (lines) More... | |
virtual void | SetUseDataPartitions (bool) |
Specify whether or not to redistribute the data. More... | |
virtual bool | GetUseDataPartitions () |
Specify whether or not to redistribute the data. More... | |
![]() | |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual unsigned int | Initialize (unsigned int minIdAvailable, unsigned int maxIdAvailable) |
Initialize the representation with an identifier range so each internal representation can own a unique ID. More... | |
unsigned int | GetUniqueIdentifier () |
Return 0 if the Initialize() method was not called otherwise a unique ID that will be shared across the processes for that same object. More... | |
virtual bool | GetVisibility () |
virtual vtkDataObject * | GetRenderedDataObject (int vtkNotUsed(port)) |
Returns the data object that is rendered from the given input port. More... | |
virtual void | SetForcedCacheKey (double val) |
Typically a representation decides whether to use cache based on the view's values for UseCache and CacheKey. More... | |
virtual void | SetForceUseCache (bool val) |
bool | GetUsingCacheForUpdate () |
Called by vtkPVDataRepresentationPipeline to see if using cache is valid and will be used for the update. More... | |
virtual bool | GetNeedUpdate () |
virtual vtkAlgorithmOutput * | GetInternalOutputPort () |
Retrieves an output port for the input data object at the specified port and connection index. More... | |
virtual vtkAlgorithmOutput * | GetInternalOutputPort (int port) |
virtual vtkAlgorithmOutput * | GetInternalOutputPort (int port, int conn) |
vtkView * | GetView () const |
Provides access to the view. More... | |
virtual void | SetUpdateTime (double time) |
Set the update time. More... | |
virtual double | GetUpdateTime () |
Set the update time. More... | |
virtual bool | GetUpdateTimeValid () |
Set whether the UpdateTime is valid. More... | |
virtual void | SetUseCache (bool) |
virtual void | SetCacheKey (double val) |
virtual double | GetCacheKey () |
Returns whether caching is used and what key to use when caching is enabled. More... | |
virtual bool | GetUseCache () |
Returns whether caching is used and what key to use when caching is enabled. More... | |
Static Public Member Functions | |
static vtkGlyph3DRepresentation * | New () |
static int | IsTypeOf (const char *type) |
static vtkGlyph3DRepresentation * | SafeDownCast (vtkObject *o) |
![]() | |
static vtkGeometryRepresentation * | New () |
static int | IsTypeOf (const char *type) |
static vtkGeometryRepresentation * | SafeDownCast (vtkObject *o) |
static bool | DoRequestGhostCells (vtkInformation *information) |
Returns true if this class would like to get ghost-cells if available for the connection whose information object is passed as the argument. More... | |
static bool | GetBounds (vtkDataObject *dataObject, double bounds[6], vtkCompositeDataDisplayAttributes *cdAttributes) |
Convenience method to get bounds from a dataset/composite dataset. More... | |
![]() | |
static int | IsTypeOf (const char *type) |
static vtkPVDataRepresentation * | SafeDownCast (vtkObject *o) |
Protected Member Functions | |
vtkGlyph3DRepresentation () | |
~vtkGlyph3DRepresentation () | |
virtual int | FillInputPortInformation (int port, vtkInformation *info) |
Fill input port information. More... | |
virtual int | RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *) |
Subclasses should override this to connect inputs to the internal pipeline as necessary. More... | |
int | RequestUpdateExtent (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) VTK_OVERRIDE |
Overridden to request single piece from the Glyph source. More... | |
virtual bool | AddToView (vtkView *view) |
Adds the representation to the view. More... | |
virtual bool | RemoveFromView (vtkView *view) |
Removes the representation to the view. More... | |
virtual vtkPVLODActor * | GetRenderedProp () |
Used in ConvertSelection to locate the prop used for actual rendering. More... | |
virtual void | UpdateColoringParameters () |
Overridden to ensure that the coloring decisions are passed over to the glyph mapper. More... | |
void | ComputeGlyphBounds (double bounds[6]) |
Determines bounds using the vtkGlyph3DMapper. More... | |
![]() | |
vtkGeometryRepresentation () | |
~vtkGeometryRepresentation () | |
virtual void | SetupDefaults () |
This method is called in the constructor. More... | |
virtual bool | GenerateMetaData (vtkInformation *, vtkInformation *) |
Produce meta-data about this representation that the view may find useful. More... | |
virtual bool | IsCached (double cache_key) |
Overridden to check with the vtkPVCacheKeeper to see if the key is cached. More... | |
![]() | |
vtkPVDataRepresentation () | |
~vtkPVDataRepresentation () | |
virtual vtkExecutive * | CreateDefaultExecutive () |
Create a default executive. More... | |
virtual int | RequestUpdateTime (vtkInformation *, vtkInformationVector **, vtkInformationVector *) |
Protected Attributes | |
vtkGlyph3DMapper * | GlyphMapper |
vtkGlyph3DMapper * | LODGlyphMapper |
vtkPVLODActor * | GlyphActor |
vtkPVArrowSource * | DummySource |
bool | MeshVisibility |
![]() | |
vtkAlgorithm * | GeometryFilter |
vtkAlgorithm * | MultiBlockMaker |
vtkPVCacheKeeper * | CacheKeeper |
vtkQuadricClustering * | Decimator |
vtkPVGeometryFilter * | LODOutlineFilter |
vtkMapper * | Mapper |
vtkMapper * | LODMapper |
vtkPVLODActor * | Actor |
vtkProperty * | Property |
double | Ambient |
double | Specular |
double | Diffuse |
int | Representation |
bool | SuppressLOD |
bool | RequestGhostCellsIfNeeded |
double | DataBounds [6] |
vtkPiecewiseFunction * | PWF |
bool | UseDataPartitions |
![]() | |
double | UpdateTime |
bool | UpdateTimeValid |
unsigned int | UniqueIdentifier |
vtkGlyph3DRepresentation is a representation that uses the vtkGlyph3DMapper for rendering glyphs.
Note that vtkGlyph3DRepresentation requires that the "glyph" source data is available on all rendering processes.
Definition at line 33 of file vtkGlyph3DRepresentation.h.
Definition at line 38 of file vtkGlyph3DRepresentation.h.
|
protected |
|
protected |
|
static |
|
virtual |
Reimplemented from vtkGeometryRepresentation.
|
static |
|
virtual |
Reimplemented from vtkGeometryRepresentation.
|
static |
void vtkGlyph3DRepresentation::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) |
|
virtual |
vtkAlgorithm::ProcessRequest() equivalent for rendering passes.
This is typically called by the vtkView to request meta-data from the representations or ask them to perform certain tasks e.g. PrepareForRendering.
Reimplemented from vtkGeometryRepresentation.
void vtkGlyph3DRepresentation::SetMeshVisibility | ( | bool | visible | ) |
Toggle the visibility of the original mesh.
If this->GetVisibility() is false, then this has no effect.
|
virtual |
Get/Set the visibility for this representation.
When the visibility of representation of false, all view passes are ignored.
Reimplemented from vtkGeometryRepresentation.
void vtkGlyph3DRepresentation::SetMaskArray | ( | const char * | val | ) |
void vtkGlyph3DRepresentation::SetScaleArray | ( | const char * | val | ) |
void vtkGlyph3DRepresentation::SetOrientationArray | ( | const char * | val | ) |
void vtkGlyph3DRepresentation::SetScaling | ( | bool | val | ) |
void vtkGlyph3DRepresentation::SetScaleMode | ( | int | val | ) |
void vtkGlyph3DRepresentation::SetScaleFactor | ( | double | val | ) |
void vtkGlyph3DRepresentation::SetOrient | ( | bool | val | ) |
void vtkGlyph3DRepresentation::SetOrientationMode | ( | int | val | ) |
void vtkGlyph3DRepresentation::SetMasking | ( | bool | val | ) |
|
virtual |
Reimplemented from vtkGeometryRepresentation.
|
virtual |
Reimplemented from vtkGeometryRepresentation.
|
virtual |
Sets if scalars are mapped through a color-map or are used directly as colors.
0 maps to VTK_COLOR_MODE_DIRECT_SCALARS 1 maps to VTK_COLOR_MODE_MAP_SCALARS
Reimplemented from vtkGeometryRepresentation.
|
virtual |
Sets if scalars are mapped through a color-map or are used directly as colors.
0 maps to VTK_COLOR_MODE_DIRECT_SCALARS 1 maps to VTK_COLOR_MODE_MAP_SCALARS
Reimplemented from vtkGeometryRepresentation.
|
virtual |
Reimplemented from vtkGeometryRepresentation.
|
virtual |
Reimplemented from vtkGeometryRepresentation.
|
virtual |
Reimplemented from vtkGeometryRepresentation.
|
virtual |
Reimplemented from vtkGeometryRepresentation.
|
virtual |
Reimplemented from vtkGeometryRepresentation.
|
virtual |
Reimplemented from vtkGeometryRepresentation.
|
virtual |
Reimplemented from vtkGeometryRepresentation.
|
protectedvirtual |
Fill input port information.
Reimplemented from vtkGeometryRepresentation.
|
protectedvirtual |
Subclasses should override this to connect inputs to the internal pipeline as necessary.
Since most representations are "meta-filters" (i.e. filters containing other filters), you should create shallow copies of your input before connecting to the internal pipeline. The convenience method GetInternalOutputPort will create a cached shallow copy of a specified input for you. The related helper functions GetInternalAnnotationOutputPort, GetInternalSelectionOutputPort should be used to obtain a selection or annotation port whose selections are localized for a particular input data object.
Reimplemented from vtkGeometryRepresentation.
|
protectedvirtual |
Overridden to request single piece from the Glyph source.
Reimplemented from vtkGeometryRepresentation.
|
protectedvirtual |
Adds the representation to the view.
This is called from vtkView::AddRepresentation(). Subclasses should override this method. Returns true if the addition succeeds.
Reimplemented from vtkGeometryRepresentation.
|
protectedvirtual |
Removes the representation to the view.
This is called from vtkView::RemoveRepresentation(). Subclasses should override this method. Returns true if the removal succeeds.
Reimplemented from vtkGeometryRepresentation.
|
inlineprotectedvirtual |
Used in ConvertSelection to locate the prop used for actual rendering.
Reimplemented from vtkGeometryRepresentation.
Definition at line 125 of file vtkGlyph3DRepresentation.h.
|
protectedvirtual |
Overridden to ensure that the coloring decisions are passed over to the glyph mapper.
Reimplemented from vtkGeometryRepresentation.
|
protected |
Determines bounds using the vtkGlyph3DMapper.
|
protected |
Definition at line 138 of file vtkGlyph3DRepresentation.h.
|
protected |
Definition at line 139 of file vtkGlyph3DRepresentation.h.
|
protected |
Definition at line 141 of file vtkGlyph3DRepresentation.h.
|
protected |
Definition at line 142 of file vtkGlyph3DRepresentation.h.
|
protected |
Definition at line 144 of file vtkGlyph3DRepresentation.h.