#include <vtkDataRepresentation.h>
vtkDataRepresentation the superclass for representations of data objects. This class itself may be instantiated and used as a representation that simply holds a connection to a pipeline.
If there are multiple representations present in a view, you should use a subclass of vtkDataRepresentation. The representation is responsible for taking the input pipeline connection and converting it to an object usable by a view. In the most common case, the representation will contain the pipeline necessary to convert a data object into an actor or set of actors.
The representation has a concept of a selection. If the user performs a selection operation on the view, the view forwards this on to its representations. The representation is responsible for displaying that selection in an appropriate way.
Representation selections may also be linked. The representation shares the selection by converting it into a view-independent format, then setting the selection on its vtkAnnotationLink. Other representations sharing the same selection link instance will get the same selection from the selection link when the view is updated. The application is responsible for linking representations as appropriate by setting the same vtkAnnotationLink on each linked representation.
Definition at line 71 of file vtkDataRepresentation.h.
Reimplemented from vtkPassInputTypeAlgorithm.
Reimplemented in vtkGeoAlignedImageRepresentation, vtkQtChartRepresentation, vtkQtTableRepresentation, vtkEmptyRepresentation, vtkParallelCoordinatesHistogramRepresentation, vtkParallelCoordinatesRepresentation, vtkRenderedGraphRepresentation, vtkRenderedHierarchyRepresentation, vtkRenderedRepresentation, vtkRenderedSurfaceRepresentation, and vtkRenderedTreeAreaRepresentation.
Definition at line 75 of file vtkDataRepresentation.h.
vtkDataRepresentation::vtkDataRepresentation | ( | ) | [protected] |
vtkDataRepresentation::~vtkDataRepresentation | ( | ) | [protected] |
static vtkDataRepresentation* vtkDataRepresentation::New | ( | ) | [static] |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkPassInputTypeAlgorithm.
Reimplemented in vtkGeoAlignedImageRepresentation, vtkQtChartRepresentation, vtkEmptyRepresentation, vtkParallelCoordinatesHistogramRepresentation, vtkParallelCoordinatesRepresentation, vtkRenderedGraphRepresentation, vtkRenderedHierarchyRepresentation, vtkRenderedRepresentation, vtkRenderedSurfaceRepresentation, and vtkRenderedTreeAreaRepresentation.
virtual const char* vtkDataRepresentation::GetClassName | ( | ) | [virtual] |
Reimplemented from vtkPassInputTypeAlgorithm.
Reimplemented in vtkGeoAlignedImageRepresentation, vtkQtChartRepresentation, vtkQtTableRepresentation, vtkEmptyRepresentation, vtkParallelCoordinatesHistogramRepresentation, vtkParallelCoordinatesRepresentation, vtkRenderedGraphRepresentation, vtkRenderedHierarchyRepresentation, vtkRenderedRepresentation, vtkRenderedSurfaceRepresentation, and vtkRenderedTreeAreaRepresentation.
static int vtkDataRepresentation::IsTypeOf | ( | const char * | name | ) | [static] |
Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkPassInputTypeAlgorithm.
Reimplemented in vtkGeoAlignedImageRepresentation, vtkQtChartRepresentation, vtkQtTableRepresentation, vtkEmptyRepresentation, vtkParallelCoordinatesHistogramRepresentation, vtkParallelCoordinatesRepresentation, vtkRenderedGraphRepresentation, vtkRenderedHierarchyRepresentation, vtkRenderedRepresentation, vtkRenderedSurfaceRepresentation, and vtkRenderedTreeAreaRepresentation.
virtual int vtkDataRepresentation::IsA | ( | const char * | name | ) | [virtual] |
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkPassInputTypeAlgorithm.
Reimplemented in vtkGeoAlignedImageRepresentation, vtkQtChartRepresentation, vtkQtTableRepresentation, vtkEmptyRepresentation, vtkParallelCoordinatesHistogramRepresentation, vtkParallelCoordinatesRepresentation, vtkRenderedGraphRepresentation, vtkRenderedHierarchyRepresentation, vtkRenderedRepresentation, vtkRenderedSurfaceRepresentation, and vtkRenderedTreeAreaRepresentation.
static vtkDataRepresentation* vtkDataRepresentation::SafeDownCast | ( | vtkObject * | o | ) | [static] |
Reimplemented from vtkPassInputTypeAlgorithm.
Reimplemented in vtkGeoAlignedImageRepresentation, vtkQtChartRepresentation, vtkQtTableRepresentation, vtkEmptyRepresentation, vtkParallelCoordinatesHistogramRepresentation, vtkParallelCoordinatesRepresentation, vtkRenderedGraphRepresentation, vtkRenderedHierarchyRepresentation, vtkRenderedRepresentation, vtkRenderedSurfaceRepresentation, and vtkRenderedTreeAreaRepresentation.
void vtkDataRepresentation::PrintSelf | ( | ostream & | os, | |
vtkIndent | indent | |||
) | [virtual] |
Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from vtkPassInputTypeAlgorithm.
Reimplemented in vtkGeoAlignedImageRepresentation, vtkQtChartRepresentation, vtkQtTableRepresentation, vtkEmptyRepresentation, vtkParallelCoordinatesHistogramRepresentation, vtkParallelCoordinatesRepresentation, vtkRenderedGraphRepresentation, vtkRenderedHierarchyRepresentation, vtkRenderedRepresentation, vtkRenderedSurfaceRepresentation, and vtkRenderedTreeAreaRepresentation.
vtkAlgorithmOutput* vtkDataRepresentation::GetInputConnection | ( | int | port = 0 , |
|
int | index = 0 | |||
) | [inline] |
Convenience override method for obtaining the input connection without specifying the port or index.
Reimplemented from vtkAlgorithm.
Definition at line 81 of file vtkDataRepresentation.h.
vtkAnnotationLink* vtkDataRepresentation::GetAnnotationLink | ( | ) | [inline] |
The annotation link for this representation. To link annotations, set the same vtkAnnotationLink object in multiple representations.
Definition at line 88 of file vtkDataRepresentation.h.
void vtkDataRepresentation::SetAnnotationLink | ( | vtkAnnotationLink * | link | ) |
The annotation link for this representation. To link annotations, set the same vtkAnnotationLink object in multiple representations.
virtual void vtkDataRepresentation::ApplyViewTheme | ( | vtkViewTheme * | vtkNotUsedtheme | ) | [inline, virtual] |
Apply a theme to this representation. Subclasses should override this method.
Definition at line 95 of file vtkDataRepresentation.h.
void vtkDataRepresentation::Select | ( | vtkView * | view, | |
vtkSelection * | selection | |||
) | [inline] |
The view calls this method when a selection occurs. The representation takes this selection and converts it into a selection on its data by calling ConvertSelection, then calls UpdateSelection with the converted selection. Subclasses should not overrride this method, but should instead override ConvertSelection. The optional third argument specifies whether the selection should be added to the previous selection on this representation.
Definition at line 105 of file vtkDataRepresentation.h.
void vtkDataRepresentation::Select | ( | vtkView * | view, | |
vtkSelection * | selection, | |||
bool | extend | |||
) |
The view calls this method when a selection occurs. The representation takes this selection and converts it into a selection on its data by calling ConvertSelection, then calls UpdateSelection with the converted selection. Subclasses should not overrride this method, but should instead override ConvertSelection. The optional third argument specifies whether the selection should be added to the previous selection on this representation.
virtual void vtkDataRepresentation::SetSelectable | ( | bool | ) | [virtual] |
Whether this representation is able to handle a selection. Default is true.
virtual bool vtkDataRepresentation::GetSelectable | ( | ) | [virtual] |
Whether this representation is able to handle a selection. Default is true.
virtual void vtkDataRepresentation::SelectableOn | ( | ) | [virtual] |
Whether this representation is able to handle a selection. Default is true.
virtual void vtkDataRepresentation::SelectableOff | ( | ) | [virtual] |
Whether this representation is able to handle a selection. Default is true.
void vtkDataRepresentation::UpdateSelection | ( | vtkSelection * | selection | ) | [inline] |
Updates the selection in the selection link and fires a selection change event. Subclasses should not overrride this method, but should instead override ConvertSelection. The optional second argument specifies whether the selection should be added to the previous selection on this representation.
Definition at line 124 of file vtkDataRepresentation.h.
void vtkDataRepresentation::UpdateSelection | ( | vtkSelection * | selection, | |
bool | extend | |||
) |
Updates the selection in the selection link and fires a selection change event. Subclasses should not overrride this method, but should instead override ConvertSelection. The optional second argument specifies whether the selection should be added to the previous selection on this representation.
virtual vtkAlgorithmOutput* vtkDataRepresentation::GetInternalAnnotationOutputPort | ( | ) | [inline, virtual] |
The output port that contains the annotations whose selections are localized for a particular input data object. This should be used when connecting the internal pipelines.
Reimplemented in vtkEmptyRepresentation.
Definition at line 133 of file vtkDataRepresentation.h.
virtual vtkAlgorithmOutput* vtkDataRepresentation::GetInternalAnnotationOutputPort | ( | int | port | ) | [inline, virtual] |
The output port that contains the annotations whose selections are localized for a particular input data object. This should be used when connecting the internal pipelines.
Reimplemented in vtkEmptyRepresentation.
Definition at line 135 of file vtkDataRepresentation.h.
virtual vtkAlgorithmOutput* vtkDataRepresentation::GetInternalAnnotationOutputPort | ( | int | port, | |
int | conn | |||
) | [virtual] |
The output port that contains the annotations whose selections are localized for a particular input data object. This should be used when connecting the internal pipelines.
Reimplemented in vtkEmptyRepresentation.
virtual vtkAlgorithmOutput* vtkDataRepresentation::GetInternalSelectionOutputPort | ( | ) | [inline, virtual] |
The output port that contains the selection associated with the current annotation (normally the interactive selection). This should be used when connecting the internal pipelines.
Definition at line 144 of file vtkDataRepresentation.h.
virtual vtkAlgorithmOutput* vtkDataRepresentation::GetInternalSelectionOutputPort | ( | int | port | ) | [inline, virtual] |
The output port that contains the selection associated with the current annotation (normally the interactive selection). This should be used when connecting the internal pipelines.
Definition at line 146 of file vtkDataRepresentation.h.
virtual vtkAlgorithmOutput* vtkDataRepresentation::GetInternalSelectionOutputPort | ( | int | port, | |
int | conn | |||
) | [virtual] |
The output port that contains the selection associated with the current annotation (normally the interactive selection). This should be used when connecting the internal pipelines.
virtual vtkAlgorithmOutput* vtkDataRepresentation::GetInternalOutputPort | ( | ) | [inline, virtual] |
Retrieves an output port for the input data object at the specified port and connection index. This may be connected to the representation's internal pipeline.
Definition at line 155 of file vtkDataRepresentation.h.
virtual vtkAlgorithmOutput* vtkDataRepresentation::GetInternalOutputPort | ( | int | port | ) | [inline, virtual] |
Retrieves an output port for the input data object at the specified port and connection index. This may be connected to the representation's internal pipeline.
Definition at line 157 of file vtkDataRepresentation.h.
virtual vtkAlgorithmOutput* vtkDataRepresentation::GetInternalOutputPort | ( | int | port, | |
int | conn | |||
) | [virtual] |
Retrieves an output port for the input data object at the specified port and connection index. This may be connected to the representation's internal pipeline.
virtual void vtkDataRepresentation::SetSelectionType | ( | int | ) | [virtual] |
Set the selection type produced by this view. This should be one of the content type constants defined in vtkSelectionNode.h. Common values are vtkSelectionNode::INDICES vtkSelectionNode::PEDIGREEIDS vtkSelectionNode::VALUES
virtual int vtkDataRepresentation::GetSelectionType | ( | ) | [virtual] |
Set the selection type produced by this view. This should be one of the content type constants defined in vtkSelectionNode.h. Common values are vtkSelectionNode::INDICES vtkSelectionNode::PEDIGREEIDS vtkSelectionNode::VALUES
virtual void vtkDataRepresentation::SetSelectionArrayNames | ( | vtkStringArray * | names | ) | [virtual] |
If a VALUES selection, the arrays used to produce a selection.
virtual vtkStringArray* vtkDataRepresentation::GetSelectionArrayNames | ( | ) | [virtual] |
If a VALUES selection, the arrays used to produce a selection.
virtual void vtkDataRepresentation::SetSelectionArrayName | ( | const char * | name | ) | [virtual] |
If a VALUES selection, the array used to produce a selection.
virtual const char* vtkDataRepresentation::GetSelectionArrayName | ( | ) | [virtual] |
If a VALUES selection, the array used to produce a selection.
virtual int vtkDataRepresentation::RequestData | ( | vtkInformation * | , | |
vtkInformationVector ** | , | |||
vtkInformationVector * | ||||
) | [inline, protected, virtual] |
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 vtkPassInputTypeAlgorithm.
Reimplemented in vtkQtTableRepresentation, vtkParallelCoordinatesHistogramRepresentation, vtkParallelCoordinatesRepresentation, vtkRenderedGraphRepresentation, vtkRenderedHierarchyRepresentation, vtkRenderedSurfaceRepresentation, and vtkRenderedTreeAreaRepresentation.
Definition at line 197 of file vtkDataRepresentation.h.
virtual void vtkDataRepresentation::ProcessEvents | ( | vtkObject * | caller, | |
unsigned long | eventId, | |||
void * | callData | |||
) | [protected, virtual] |
Clear the input shallow copy caches if the algorithm is in "release data" mode.
virtual void vtkDataRepresentation::SetAnnotationLinkInternal | ( | vtkAnnotationLink * | link | ) | [protected, virtual] |
The annotation link for this representation.
virtual bool vtkDataRepresentation::AddToView | ( | vtkView * | vtkNotUsedview | ) | [inline, protected, virtual] |
Adds the representation to the view. This is called from vtkView::AddRepresentation(). Subclasses should override this method. Returns true if the addition succeeds.
Definition at line 238 of file vtkDataRepresentation.h.
virtual bool vtkDataRepresentation::RemoveFromView | ( | vtkView * | vtkNotUsedview | ) | [inline, protected, virtual] |
Removes the representation to the view. This is called from vtkView::RemoveRepresentation(). Subclasses should override this method. Returns true if the removal succeeds.
Definition at line 243 of file vtkDataRepresentation.h.
virtual vtkSelection* vtkDataRepresentation::ConvertSelection | ( | vtkView * | view, | |
vtkSelection * | selection | |||
) | [protected, virtual] |
Convert the selection to a type appropriate for sharing with other representations through vtkAnnotationLink, possibly using the view. For the superclass, we just return the same selection. Subclasses may do something more fancy, like convert the selection from a frustrum to a list of pedigree ids. If the selection cannot be applied to this representation, return NULL.
Reimplemented in vtkParallelCoordinatesRepresentation, vtkRenderedGraphRepresentation, vtkRenderedHierarchyRepresentation, vtkRenderedSurfaceRepresentation, and vtkRenderedTreeAreaRepresentation.
friend class vtkView [friend] |
Definition at line 224 of file vtkDataRepresentation.h.
friend class vtkRenderView [friend] |
friend class Command [friend] |
Definition at line 226 of file vtkDataRepresentation.h.
The annotation link for this representation.
Definition at line 211 of file vtkDataRepresentation.h.
bool vtkDataRepresentation::Selectable [protected] |
Definition at line 215 of file vtkDataRepresentation.h.
int vtkDataRepresentation::SelectionType [protected] |
The selection type created by the view.
Definition at line 218 of file vtkDataRepresentation.h.
vtkStringArray* vtkDataRepresentation::SelectionArrayNames [protected] |
If a VALUES selection, the array names used in the selection.
Definition at line 221 of file vtkDataRepresentation.h.
Command* vtkDataRepresentation::Observer [protected] |
Definition at line 228 of file vtkDataRepresentation.h.