ParaView
|
representation for showing cell and point labels. More...
#include <vtkDataLabelRepresentation.h>
Public Types | |
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 void | MarkModified () |
This needs to be called on all instances of vtkGeometryRepresentation when the input is modified. More... | |
void | SetPointLabelVisibility (int) |
void | SetPointFieldDataArrayName (const char *) |
void | SetPointLabelMode (int) |
void | SetPointLabelColor (double r, double g, double b) |
void | SetPointLabelOpacity (double) |
void | SetPointLabelFontFamily (int) |
void | SetPointLabelBold (int) |
void | SetPointLabelItalic (int) |
void | SetPointLabelShadow (int) |
void | SetPointLabelJustification (int) |
void | SetPointLabelFontSize (int) |
void | SetPointLabelFormat (const char *) |
void | SetCellLabelVisibility (int) |
void | SetCellFieldDataArrayName (const char *) |
void | SetCellLabelMode (int) |
void | SetCellLabelColor (double r, double g, double b) |
void | SetCellLabelOpacity (double) |
void | SetCellLabelFontFamily (int) |
void | SetCellLabelBold (int) |
void | SetCellLabelItalic (int) |
void | SetCellLabelShadow (int) |
void | SetCellLabelJustification (int) |
void | SetCellLabelFontSize (int) |
void | SetCellLabelFormat (const char *) |
int | ProcessViewRequest (vtkInformationRequestKey *request_type, vtkInformation *inInfo, vtkInformation *outInfo) |
vtkAlgorithm::ProcessRequest() equivalent for rendering passes. More... | |
virtual void | SetVisibility (bool val) |
Get/Set the visibility for this representation. More... | |
virtual bool | GetVisibility () |
Get/Set the visibility for this representation. More... | |
void | SetOrientation (double, double, double) |
Used to build the internal transform. More... | |
void | SetOrigin (double, double, double) |
Used to build the internal transform. More... | |
void | SetPosition (double, double, double) |
Used to build the internal transform. More... | |
void | SetScale (double, double, double) |
Used to build the internal transform. More... | |
void | SetUserTransform (const double[16]) |
Used to build the internal transform. 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 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 vtkDataLabelRepresentation * | New () |
static int | IsTypeOf (const char *type) |
static vtkDataLabelRepresentation * | SafeDownCast (vtkObject *o) |
![]() | |
static int | IsTypeOf (const char *type) |
static vtkPVDataRepresentation * | SafeDownCast (vtkObject *o) |
Protected Member Functions | |
vtkDataLabelRepresentation () | |
~vtkDataLabelRepresentation () | |
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 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 bool | IsCached (double cache_key) |
Overridden to check with the vtkPVCacheKeeper to see if the key is cached. More... | |
void | UpdateTransform () |
![]() | |
vtkPVDataRepresentation () | |
~vtkPVDataRepresentation () | |
virtual vtkExecutive * | CreateDefaultExecutive () |
Create a default executive. More... | |
virtual int | RequestUpdateExtent (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) |
virtual int | RequestUpdateTime (vtkInformation *, vtkInformationVector **, vtkInformationVector *) |
Static Protected Member Functions | |
static void | OnWarningEvent (vtkObject *source, unsigned long, void *clientdata, void *) |
Protected Attributes | |
vtkCompositeDataToUnstructuredGridFilter * | MergeBlocks |
vtkPVCacheKeeper * | CacheKeeper |
vtkLabeledDataMapper * | PointLabelMapper |
vtkTextProperty * | PointLabelProperty |
vtkActor2D * | PointLabelActor |
vtkCellCenters * | CellCenters |
vtkLabeledDataMapper * | CellLabelMapper |
vtkTextProperty * | CellLabelProperty |
vtkActor2D * | CellLabelActor |
vtkProp3D * | TransformHelperProp |
vtkTransform * | Transform |
vtkSmartPointer< vtkDataObject > | Dataset |
vtkCallbackCommand * | WarningObserver |
int | PointLabelVisibility |
int | CellLabelVisibility |
![]() | |
double | UpdateTime |
bool | UpdateTimeValid |
unsigned int | UniqueIdentifier |
representation for showing cell and point labels.
vtkDataLabelRepresentation is a representation for showing cell and/or point labels. This representation relies on all the data being cloned on all nodes hence beware of using this representation for large datasets.
Definition at line 48 of file vtkDataLabelRepresentation.h.
Definition at line 53 of file vtkDataLabelRepresentation.h.
|
protected |
|
protected |
|
static |
|
virtual |
Reimplemented from vtkPVDataRepresentation.
|
static |
|
virtual |
Reimplemented from vtkPVDataRepresentation.
|
static |
void vtkDataLabelRepresentation::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) |
|
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.
|
virtual |
Get/Set the visibility for this representation.
When the visibility of representation of false, all view passes are ignored.
Reimplemented from vtkPVDataRepresentation.
void vtkDataLabelRepresentation::SetPointLabelVisibility | ( | int | ) |
void vtkDataLabelRepresentation::SetPointFieldDataArrayName | ( | const char * | ) |
void vtkDataLabelRepresentation::SetPointLabelMode | ( | int | ) |
void vtkDataLabelRepresentation::SetPointLabelColor | ( | double | r, |
double | g, | ||
double | b | ||
) |
void vtkDataLabelRepresentation::SetPointLabelOpacity | ( | double | ) |
void vtkDataLabelRepresentation::SetPointLabelFontFamily | ( | int | ) |
void vtkDataLabelRepresentation::SetPointLabelBold | ( | int | ) |
void vtkDataLabelRepresentation::SetPointLabelItalic | ( | int | ) |
void vtkDataLabelRepresentation::SetPointLabelShadow | ( | int | ) |
void vtkDataLabelRepresentation::SetPointLabelJustification | ( | int | ) |
void vtkDataLabelRepresentation::SetPointLabelFontSize | ( | int | ) |
void vtkDataLabelRepresentation::SetPointLabelFormat | ( | const char * | ) |
void vtkDataLabelRepresentation::SetCellLabelVisibility | ( | int | ) |
void vtkDataLabelRepresentation::SetCellFieldDataArrayName | ( | const char * | ) |
void vtkDataLabelRepresentation::SetCellLabelMode | ( | int | ) |
void vtkDataLabelRepresentation::SetCellLabelColor | ( | double | r, |
double | g, | ||
double | b | ||
) |
void vtkDataLabelRepresentation::SetCellLabelOpacity | ( | double | ) |
void vtkDataLabelRepresentation::SetCellLabelFontFamily | ( | int | ) |
void vtkDataLabelRepresentation::SetCellLabelBold | ( | int | ) |
void vtkDataLabelRepresentation::SetCellLabelItalic | ( | int | ) |
void vtkDataLabelRepresentation::SetCellLabelShadow | ( | int | ) |
void vtkDataLabelRepresentation::SetCellLabelJustification | ( | int | ) |
void vtkDataLabelRepresentation::SetCellLabelFontSize | ( | int | ) |
void vtkDataLabelRepresentation::SetCellLabelFormat | ( | const char * | ) |
void vtkDataLabelRepresentation::SetOrientation | ( | double | , |
double | , | ||
double | |||
) |
Used to build the internal transform.
void vtkDataLabelRepresentation::SetOrigin | ( | double | , |
double | , | ||
double | |||
) |
Used to build the internal transform.
void vtkDataLabelRepresentation::SetPosition | ( | double | , |
double | , | ||
double | |||
) |
Used to build the internal transform.
void vtkDataLabelRepresentation::SetScale | ( | double | , |
double | , | ||
double | |||
) |
Used to build the internal transform.
void vtkDataLabelRepresentation::SetUserTransform | ( | const double | [16] | ) |
Used to build the internal transform.
|
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.
|
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.
|
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.
|
protectedvirtual |
Fill input port information.
|
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.
|
protectedvirtual |
Overridden to check with the vtkPVCacheKeeper to see if the key is cached.
Reimplemented from vtkPVDataRepresentation.
|
protected |
|
staticprotected |
|
protected |
Definition at line 163 of file vtkDataLabelRepresentation.h.
|
protected |
Definition at line 164 of file vtkDataLabelRepresentation.h.
|
protected |
Definition at line 166 of file vtkDataLabelRepresentation.h.
|
protected |
Definition at line 167 of file vtkDataLabelRepresentation.h.
|
protected |
Definition at line 168 of file vtkDataLabelRepresentation.h.
|
protected |
Definition at line 170 of file vtkDataLabelRepresentation.h.
|
protected |
Definition at line 171 of file vtkDataLabelRepresentation.h.
|
protected |
Definition at line 172 of file vtkDataLabelRepresentation.h.
|
protected |
Definition at line 173 of file vtkDataLabelRepresentation.h.
|
protected |
Definition at line 175 of file vtkDataLabelRepresentation.h.
|
protected |
Definition at line 176 of file vtkDataLabelRepresentation.h.
|
protected |
Definition at line 178 of file vtkDataLabelRepresentation.h.
|
protected |
Definition at line 181 of file vtkDataLabelRepresentation.h.
|
protected |
Definition at line 184 of file vtkDataLabelRepresentation.h.
|
protected |
Definition at line 185 of file vtkDataLabelRepresentation.h.