Go to the documentation of this file.
53 #ifndef vtkDataRepresentation_h
54 #define vtkDataRepresentation_h
56 #include "vtkViewsCoreModule.h"
89 {
return this->AnnotationLinkInternal; }
109 { this->Select(view, selection,
false); }
124 { this->Annotate(view, annotations,
false); }
133 vtkGetMacro(Selectable,
bool);
145 { this->UpdateSelection(selection,
false); }
156 { this->UpdateAnnotations(annotations,
false); }
165 {
return this->GetInternalAnnotationOutputPort(0); }
167 {
return this->GetInternalAnnotationOutputPort(
port, 0); }
176 {
return this->GetInternalSelectionOutputPort(0); }
178 {
return this->GetInternalSelectionOutputPort(
port, 0); }
187 {
return this->GetInternalOutputPort(0); }
189 {
return this->GetInternalOutputPort(
port, 0); }
202 vtkGetMacro(SelectionType,
int);
280 friend class Command;
316 Internals* Implementation;
vtkAnnotationLink * GetAnnotationLink()
The annotation link for this representation.
static vtkDataRepresentation * New()
virtual bool AddToView(vtkView *vtkNotUsed(view))
Adds the representation to the view.
A view containing a renderer.
void UpdateAnnotations(vtkAnnotationLayers *annotations, bool extend)
void UpdateSelection(vtkSelection *selection, bool extend)
int SelectionType
The selection type created by the view.
abstract base class for most VTK objects
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Subclasses should override this to connect inputs to the internal pipeline as necessary.
An algorithm for linking annotations among objects.
virtual void ProcessEvents(vtkObject *caller, unsigned long eventId, void *callData)
Clear the input shallow copy caches if the algorithm is in "release data" mode.
A node in a selection tree.
virtual vtkAlgorithmOutput * GetInternalAnnotationOutputPort(int port)
Producer for stand-alone data objects.
virtual bool RemoveFromView(vtkView *vtkNotUsed(view))
Removes the representation to the view.
vtkAlgorithmOutput * GetInputConnection(int port=0, int index=0)
Convenience override method for obtaining the input connection without specifying the port or index.
virtual vtkAlgorithmOutput * GetInternalSelectionOutputPort(int port)
void Annotate(vtkView *view, vtkAnnotationLayers *annotations)
Analogous to Select().
The superclass for all views.
void Select(vtkView *view, vtkSelection *selection, bool extend)
Sets theme colors for a graphical view.
virtual void SetSelectionArrayName(const char *name)
If a VALUES selection, the array used to produce a selection.
virtual vtkAlgorithmOutput * GetInternalAnnotationOutputPort(int port, int conn)
Stores a ordered collection of annotation sets.
virtual vtkAlgorithmOutput * GetInternalOutputPort(int port)
vtkAlgorithmOutput * GetInputConnection(int port, int index)
Get the algorithm output port connected to an input port.
The superclass for all representations.
vtkAnnotationLink * AnnotationLinkInternal
void Annotate(vtkView *view, vtkAnnotationLayers *annotations, bool extend)
virtual vtkAlgorithmOutput * GetInternalSelectionOutputPort(int port, int conn)
void Select(vtkView *view, vtkSelection *selection)
The view calls this method when a selection occurs.
a simple class to control print indentation
virtual vtkSelection * ConvertSelection(vtkView *view, vtkSelection *selection)
Convert the selection to a type appropriate for sharing with other representations through vtkAnnotat...
void UpdateSelection(vtkSelection *selection)
Updates the selection in the selection link and fires a selection change event.
vtkTrivialProducer * GetInternalInput(int port, int conn)
virtual vtkAlgorithmOutput * GetInternalAnnotationOutputPort()
The output port that contains the annotations whose selections are localized for a particular input d...
virtual vtkAlgorithmOutput * GetInternalSelectionOutputPort()
The output port that contains the selection associated with the current annotation (normally the inte...
void SetAnnotationLink(vtkAnnotationLink *link)
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
virtual vtkAlgorithmOutput * GetInternalOutputPort()
Retrieves an output port for the input data object at the specified port and connection index.
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
void UpdateAnnotations(vtkAnnotationLayers *annotations)
Updates the selection in the selection link and fires a selection change event.
virtual vtkAlgorithmOutput * GetInternalOutputPort(int port, int conn)
vtkStringArray * SelectionArrayNames
If a VALUES selection, the array names used in the selection.
void SetInternalInput(int port, int conn, vtkTrivialProducer *producer)
Proxy object to connect input/output ports.
virtual void SetSelectionArrayNames(vtkStringArray *names)
If a VALUES selection, the arrays used to produce a selection.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
a vtkAbstractArray subclass for strings
virtual void ApplyViewTheme(vtkViewTheme *vtkNotUsed(theme))
Apply a theme to this representation.
virtual const char * GetSelectionArrayName()
general representation of visualization data
virtual void SetAnnotationLinkInternal(vtkAnnotationLink *link)
The annotation link for this representation.
virtual vtkAnnotationLayers * ConvertAnnotations(vtkView *view, vtkAnnotationLayers *annotations)
Analogous to ConvertSelection(), allows subclasses to manipulate annotations before passing them off ...