32 #ifndef pqRenderViewModule_h 33 #define pqRenderViewModule_h 60 pqServer* server, QObject* parent = NULL);
63 pqRenderView(
const QString& tname,
const QString& group,
const QString& name,
84 virtual void resetCenterOfRotation();
90 virtual void resetParallelScale();
95 virtual bool getOrientationAxesVisibility()
const;
100 virtual bool getOrientationAxesInteractivity()
const;
105 virtual QColor getOrientationAxesLabelColor()
const;
110 virtual QColor getOrientationAxesOutlineColor()
const;
123 return this->UseMultipleRepresentationSelection;
129 virtual bool getCenterAxesVisibility()
const;
134 virtual void getCenterOfRotation(
double center[3])
const;
169 virtual void clearUndoStack();
174 virtual void resetViewDirection(
175 double look_x,
double look_y,
double look_z,
double up_x,
double up_y,
double up_z);
183 virtual void setCursor(
const QCursor&);
189 virtual void selectOnSurface(
int rectangle[4],
191 virtual void selectPointsOnSurface(
int rectangle[4],
212 virtual void selectFrustum(
int rectangle[4]);
213 virtual void selectFrustumPoints(
int rectangle[4]);
225 virtual void selectPolygonPoints(
232 virtual void selectPolygonCells(
237 void updateInteractionMode(
int mode);
241 virtual void setOrientationAxesVisibility(
bool visible);
244 virtual void setOrientationAxesInteractivity(
bool interactive);
247 virtual void setOrientationAxesLabelColor(
const QColor&);
250 virtual void setOrientationAxesOutlineColor(
const QColor&);
256 virtual void setCenterOfRotation(
double x,
double y,
double z);
259 this->setCenterOfRotation(xyz[0], xyz[1], xyz[2]);
263 virtual void setParallelScale(
double scale);
266 virtual void setCenterAxesVisibility(
bool visible);
279 this->UseMultipleRepresentationSelection = b;
285 virtual void linkToOtherView();
291 virtual void undo()
override;
297 virtual void redo()
override;
307 virtual void updateInteractionMode(
pqOutputPort* opPort);
313 virtual void onInteractionModeChange();
318 virtual void onGenericFilmicPresetsChange();
322 virtual void onResetCameraEvent();
328 virtual void onUndoStackChanged();
334 virtual void fakeUndoRedo(
bool redo,
bool self);
341 virtual void fakeInteraction(
bool start);
362 void selectOnSurfaceInternal(
int rect[4], QList<pqOutputPort*>&,
bool select_points,
363 int selectionModifier,
bool select_blocks,
const char* array =
nullptr);
365 void selectPolygonInternal(
vtkIntArray* polygon, QList<pqOutputPort*>&,
bool select_points,
366 int selectionModifier,
bool select_blocks);
368 void emitSelectionSignal(QList<pqOutputPort*> outputPorts,
int selectionModifier);
370 void collectSelectionPorts(
vtkCollection* selectedRepresentations,
371 vtkCollection* selectionSources, QList<pqOutputPort*>& pqPorts,
int selectionModifier,
377 pqInternal* Internal;
pqDataRepresentation is the superclass for a display for a pqPipelineSource i.e.
pqOutputPort is a server manager model item for an output port of any pqPipelineSource item...
virtual void resetCamera()=0
Resets the camera to include all visible data.
void initialize() override
Use this method to initialize the pqObject state using the underlying vtkSMProxy. ...
virtual void redo()
Called to redo interaction.
Superclass for all view proxies.
bool UseMultipleRepresentationSelection
QWidget * createWidget() override
Creates a new instance of the QWidget subclass to be used to show this view.
bool supportsUndo() const override
Returns if this view module can support undo/redo.
virtual void setUseMultipleRepresentationSelection(bool b)
Set whether selection will be done on multiple representations.
bool supportsCapture() const override
Returns if this view module can support image capture.
virtual void setResetCenterWithCamera(bool b)
Get/Set whether resetCamera() resets the center of rotation as well.
virtual void resetCenterOfRotationIfNeeded()
Resets center of rotation if this->ResetCenterWithCamera is true.
virtual bool getUseMultipleRepresentationSelection() const
Get whether selection will be done on multiple representations.
virtual bool canUndo() const
Returns true if undo can be done.
implementation for View that includes render window and renderers.
virtual void setCenterOfRotation(double xyz[3])
virtual bool getResetCenterWithCamera() const
Get whether resetCamera() resets the center of rotation as well.
virtual bool canRedo() const
Returns true if redo can be done.
pqRenderViewBase is an abstract base class for all render-view based views.
virtual void undo()
Called to undo interaction.
bool ResetCenterWithCamera
static QString renderViewType()
pqServer (should be renamed to pqSession) is a pqServerManagerModelItem subclass that represents a vt...