ParaView
|
representation for showing any datasets as external shell of polygons. More...
#include <vtkGeometryRepresentation.h>
Public Types | |
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... | |
virtual void | MarkModified () |
This needs to be called on all instances of vtkGeometryRepresentation when the input is modified. More... | |
virtual void | SetVisibility (bool val) |
Get/Set the visibility for this representation. 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) |
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]) |
virtual void | SetInterpolateScalarsBeforeMapping (int val) |
virtual void | SetLookupTable (vtkScalarsToColors *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 | 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 | 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 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 | |
vtkGeometryRepresentation () | |
~vtkGeometryRepresentation () | |
virtual void | SetupDefaults () |
This method is called in the constructor. More... | |
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... | |
virtual int | RequestUpdateExtent (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) |
Overridden to request correct ghost-level to avoid internal surfaces. More... | |
virtual bool | GenerateMetaData (vtkInformation *, vtkInformation *) |
Produce meta-data about this representation that the view may find useful. 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 void | UpdateColoringParameters () |
Passes on parameters to vtkProperty and vtkMapper. More... | |
virtual vtkPVLODActor * | GetRenderedProp () |
Used in ConvertSelection to locate the prop used for actual rendering. 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 | |
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 |
Friends | |
class | vtkSelectionRepresentation |
representation for showing any datasets as external shell of polygons.
vtkGeometryRepresentation is a representation for showing polygon geometry. It handles non-polygonal datasets by extracting external surfaces. One can use this representation to show surface/wireframe/points/surface-with-edges.
Definition at line 46 of file vtkGeometryRepresentation.h.
Definition at line 51 of file vtkGeometryRepresentation.h.
Enumerator | |
---|---|
POINTS | |
WIREFRAME | |
SURFACE | |
SURFACE_WITH_EDGES |
Definition at line 107 of file vtkGeometryRepresentation.h.
|
protected |
|
protected |
|
static |
|
virtual |
Reimplemented from vtkPVDataRepresentation.
Reimplemented in vtkGlyph3DRepresentation, vtkGeometrySliceRepresentation, vtkGeometryRepresentationWithFaces, and vtkOutlineRepresentation.
|
static |
|
virtual |
Reimplemented from vtkPVDataRepresentation.
Reimplemented in vtkGlyph3DRepresentation, vtkGeometrySliceRepresentation, vtkGeometryRepresentationWithFaces, and vtkOutlineRepresentation.
|
static |
void vtkGeometryRepresentation::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 vtkPVDataRepresentation.
Reimplemented in vtkGeometryRepresentationWithFaces, vtkGlyph3DRepresentation, and vtkGeometrySliceRepresentation.
|
virtual |
This needs to be called on all instances of vtkGeometryRepresentation when the input is modified.
This is essential since the geometry filter does not have any real-input on the client side which messes with the Update requests.
Reimplemented from vtkPVDataRepresentation.
|
virtual |
Get/Set the visibility for this representation.
When the visibility of representation of false, all view passes are ignored.
Reimplemented from vtkPVDataRepresentation.
Reimplemented in vtkGlyph3DRepresentation, and vtkGeometryRepresentationWithFaces.
void vtkGeometryRepresentation::SetBlockColorsDistinctValues | ( | int | distinctValues | ) |
Determines the number of distinct values in vtkBlockColors See also vtkPVGeometryFilter.
int vtkGeometryRepresentation::GetBlockColorsDistinctValues | ( | ) |
Determines the number of distinct values in vtkBlockColors See also vtkPVGeometryFilter.
|
inlinevirtual |
Enable/Disable LOD;.
Reimplemented in vtkOutlineRepresentation.
Definition at line 89 of file vtkGeometryRepresentation.h.
|
virtual |
Set the lighting properties of the object.
vtkGeometryRepresentation overrides these based of the following conditions:
|
virtual |
Set the lighting properties of the object.
vtkGeometryRepresentation overrides these based of the following conditions:
|
virtual |
Set the lighting properties of the object.
vtkGeometryRepresentation overrides these based of the following conditions:
|
virtual |
Set the lighting properties of the object.
vtkGeometryRepresentation overrides these based of the following conditions:
|
virtual |
Set the lighting properties of the object.
vtkGeometryRepresentation overrides these based of the following conditions:
|
virtual |
Set the lighting properties of the object.
vtkGeometryRepresentation overrides these based of the following conditions:
|
virtual |
Set the representation type.
This adds VTK_SURFACE_WITH_EDGES to those defined in vtkProperty.
Reimplemented in vtkOutlineRepresentation.
|
virtual |
Set the representation type.
This adds VTK_SURFACE_WITH_EDGES to those defined in vtkProperty.
|
virtual |
Overload to set representation type using string.
Accepted strings are: "Points", "Wireframe", "Surface" and "Surface With Edges".
Reimplemented in vtkOutlineRepresentation.
|
virtual |
Returns the data object that is rendered from the given input port.
|
static |
Returns true if this class would like to get ghost-cells if available for the connection whose information object is passed as the argument.
|
virtual |
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.
|
virtual |
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.
|
virtual |
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.
|
virtual |
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.
|
virtual |
Reimplemented in vtkOutlineRepresentation.
void vtkGeometryRepresentation::SetTriangulate | ( | int | ) |
void vtkGeometryRepresentation::SetNonlinearSubdivisionLevel | ( | int | ) |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Reimplemented in vtkGlyph3DRepresentation.
|
virtual |
Reimplemented in vtkGlyph3DRepresentation.
|
virtual |
Reimplemented in vtkGlyph3DRepresentation, and vtkOutlineRepresentation.
|
virtual |
Reimplemented in vtkGlyph3DRepresentation.
|
virtual |
Reimplemented in vtkGlyph3DRepresentation.
|
virtual |
Reimplemented in vtkGlyph3DRepresentation.
|
virtual |
Reimplemented in vtkGlyph3DRepresentation.
|
virtual |
Reimplemented in vtkGlyph3DRepresentation.
|
virtual |
Reimplemented in vtkGlyph3DRepresentation.
|
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 in vtkGlyph3DRepresentation.
|
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 in vtkGlyph3DRepresentation.
|
inline |
Provides access to the actor used by this representation.
Definition at line 200 of file vtkGeometryRepresentation.h.
|
virtual |
Set/get the visibility for a single block.
|
virtual |
Set/get the visibility for a single block.
|
virtual |
Set/get the visibility for a single block.
|
virtual |
Set/get the visibility for a single block.
|
virtual |
Set/get the color for a single block.
|
virtual |
Set/get the color for a single block.
|
virtual |
Set/get the color for a single block.
|
virtual |
Set/get the color for a single block.
|
virtual |
Set/get the color for a single block.
|
virtual |
Set/get the opacityfor a single block.
|
virtual |
Set/get the opacityfor a single block.
|
virtual |
Set/get the opacityfor a single block.
|
virtual |
Set/get the opacityfor a single block.
|
virtual |
Set/get the opacityfor a single block.
const char* vtkGeometryRepresentation::GetColorArrayName | ( | ) |
Convenience method to get the array name used to scalar color with.
|
static |
Convenience method to get bounds from a dataset/composite dataset.
If a vtkCompositeDataDisplayAttributes cdAttributes is provided and if the input data dataObject is vtkCompositeDataSet, only visible blocks of the data will be used to compute the bounds. Returns true if valid bounds were computed.
|
virtual |
For OSPRay controls sizing of implicit spheres (points) and cylinders (lines)
|
virtual |
For OSPRay controls sizing of implicit spheres (points) and cylinders (lines)
|
virtual |
For OSPRay controls sizing of implicit spheres (points) and cylinders (lines)
|
virtual |
Specify whether or not to redistribute the data.
The default is false since that is the only way in general to guarantee correct rendering. Can set to true if all rendered data sets are based on the same data partitioning in order to save on the data redistribution.
|
virtual |
Specify whether or not to redistribute the data.
The default is false since that is the only way in general to guarantee correct rendering. Can set to true if all rendered data sets are based on the same data partitioning in order to save on the data redistribution.
|
protectedvirtual |
This method is called in the constructor.
If the subclasses override any of the iVar vtkObject's of this class e.g. the Mappers, GeometryFilter etc., they should call this method again in their constructor. It must be totally safe to call this method repeatedly.
Reimplemented in vtkGeometryRepresentationWithFaces, and vtkGeometrySliceRepresentation.
|
protectedvirtual |
Fill input port information.
Reimplemented in vtkGlyph3DRepresentation.
|
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 vtkPVDataRepresentation.
Reimplemented in vtkGlyph3DRepresentation, and vtkGeometrySliceRepresentation.
|
protectedvirtual |
Overridden to request correct ghost-level to avoid internal surfaces.
Reimplemented from vtkPVDataRepresentation.
Reimplemented in vtkGlyph3DRepresentation.
|
protectedvirtual |
Produce meta-data about this representation that the view may find useful.
|
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 vtkPVDataRepresentation.
Reimplemented in vtkGlyph3DRepresentation, vtkGeometryRepresentationWithFaces, and vtkGeometrySliceRepresentation.
|
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 vtkPVDataRepresentation.
Reimplemented in vtkGlyph3DRepresentation, vtkGeometryRepresentationWithFaces, and vtkGeometrySliceRepresentation.
|
protectedvirtual |
Passes on parameters to vtkProperty and vtkMapper.
Reimplemented in vtkGlyph3DRepresentation, and vtkGeometryRepresentationWithFaces.
|
inlineprotectedvirtual |
Used in ConvertSelection to locate the prop used for actual rendering.
Reimplemented in vtkGlyph3DRepresentation.
Definition at line 332 of file vtkGeometryRepresentation.h.
|
protectedvirtual |
Overridden to check with the vtkPVCacheKeeper to see if the key is cached.
Reimplemented from vtkPVDataRepresentation.
|
friend |
Definition at line 366 of file vtkGeometryRepresentation.h.
|
protected |
Definition at line 339 of file vtkGeometryRepresentation.h.
|
protected |
Definition at line 340 of file vtkGeometryRepresentation.h.
|
protected |
Definition at line 341 of file vtkGeometryRepresentation.h.
|
protected |
Definition at line 342 of file vtkGeometryRepresentation.h.
|
protected |
Definition at line 343 of file vtkGeometryRepresentation.h.
|
protected |
Definition at line 345 of file vtkGeometryRepresentation.h.
|
protected |
Definition at line 346 of file vtkGeometryRepresentation.h.
|
protected |
Definition at line 347 of file vtkGeometryRepresentation.h.
|
protected |
Definition at line 348 of file vtkGeometryRepresentation.h.
|
protected |
Definition at line 350 of file vtkGeometryRepresentation.h.
|
protected |
Definition at line 351 of file vtkGeometryRepresentation.h.
|
protected |
Definition at line 352 of file vtkGeometryRepresentation.h.
|
protected |
Definition at line 353 of file vtkGeometryRepresentation.h.
|
protected |
Definition at line 354 of file vtkGeometryRepresentation.h.
|
protected |
Definition at line 355 of file vtkGeometryRepresentation.h.
|
protected |
Definition at line 356 of file vtkGeometryRepresentation.h.
|
protected |
Definition at line 358 of file vtkGeometryRepresentation.h.
|
protected |
Definition at line 360 of file vtkGeometryRepresentation.h.