40 #ifndef vtkDataRepresentation_h
41 #define vtkDataRepresentation_h
44 #include "vtkViewsCoreModule.h"
47 VTK_ABI_NAMESPACE_BEGIN
114 this->Annotate(view, annotations,
false);
123 vtkSetMacro(Selectable,
bool);
124 vtkGetMacro(Selectable,
bool);
125 vtkBooleanMacro(Selectable,
bool);
136 void UpdateSelection(
vtkSelection* selection,
bool extend);
147 this->UpdateAnnotations(annotations,
false);
158 return this->GetInternalAnnotationOutputPort(0);
162 return this->GetInternalAnnotationOutputPort(port, 0);
173 return this->GetInternalSelectionOutputPort(0);
177 return this->GetInternalSelectionOutputPort(port, 0);
189 return this->GetInternalOutputPort(port, 0);
202 vtkSetMacro(SelectionType,
int);
203 vtkGetMacro(SelectionType,
int);
218 virtual void SetSelectionArrayName(
const char*
name);
219 virtual const char* GetSelectionArrayName();
254 virtual void ProcessEvents(
vtkObject* caller,
unsigned long eventId,
void* callData);
280 friend class Command;
316 Internals* Implementation;
319 VTK_ABI_NAMESPACE_END
virtual vtkAlgorithmOutput * GetInternalOutputPort()
Retrieves an output port for the input data object at the specified port and connection index...
int SelectionType
The selection type created by the view.
abstract base class for most VTK objects
virtual vtkAlgorithmOutput * GetInternalAnnotationOutputPort(int port)
virtual vtkAlgorithmOutput * GetInternalOutputPort(int port)
virtual vtkAlgorithmOutput * GetInternalAnnotationOutputPort()
The output port that contains the annotations whose selections are localized for a particular input d...
void Select(vtkView *view, vtkSelection *selection)
The view calls this method when a selection occurs.
virtual vtkAlgorithmOutput * GetInternalSelectionOutputPort(int port)
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses should override this to connect inputs to the internal pipeline as necessary.
a vtkAbstractArray subclass for strings
data object that represents a "selection" in VTK.
Proxy object to connect input/output ports.
Sets theme colors for a graphical view.
Producer for stand-alone data objects.
The superclass for all views.
vtkAlgorithmOutput * GetInputConnection(int port=0, int index=0)
Convenience override method for obtaining the input connection without specifying the port or index...
vtkStringArray * SelectionArrayNames
If a VALUES selection, the array names used in the selection.
a simple class to control print indentation
virtual void ApplyViewTheme(vtkViewTheme *theme)
Apply a theme to this representation.
The superclass for all representations.
virtual bool RemoveFromView(vtkView *view)
Removes the representation to the view.
vtkAnnotationLink * GetAnnotationLink()
The annotation link for this representation.
void Annotate(vtkView *view, vtkAnnotationLayers *annotations)
Analogous to Select().
A view containing a renderer.
virtual bool AddToView(vtkView *view)
Adds the representation to the view.
Stores a ordered collection of annotation sets.
virtual vtkAlgorithmOutput * GetInternalSelectionOutputPort()
The output port that contains the selection associated with the current annotation (normally the inte...
vtkAnnotationLink * AnnotationLinkInternal
The annotation link for this representation.
void UpdateAnnotations(vtkAnnotationLayers *annotations)
Updates the selection in the selection link and fires a selection change event.
vtkAlgorithmOutput * GetInputConnection(int port, int index)
Get the algorithm output port connected to an input port.
general representation of visualization data
void UpdateSelection(vtkSelection *selection)
Updates the selection in the selection link and fires a selection change event.
An algorithm for linking annotations among objects.