Go to the documentation of this file.
12 #ifndef vtkSMRenderViewProxy_h
13 #define vtkSMRenderViewProxy_h
16 #include "vtkRemotingViewsModule.h"
38 bool SelectSurfaceCells(
const int region[4],
vtkCollection* selectedRepresentations,
39 vtkCollection* selectionSources,
bool multiple_selections =
false,
40 int modifier = 0,
bool select_blocks =
false,
const char* arrayName =
nullptr);
41 bool SelectSurfacePoints(
const int region[4],
vtkCollection* selectedRepresentations,
42 vtkCollection* selectionSources,
bool multiple_selections =
false,
43 int modifier = 0,
bool select_blocks =
false,
const char* arrayName =
nullptr);
44 bool SelectFrustumCells(
const int region[4],
vtkCollection* selectedRepresentations,
45 vtkCollection* selectionSources,
bool multiple_selections =
false);
46 bool SelectFrustumPoints(
const int region[4],
vtkCollection* selectedRepresentations,
47 vtkCollection* selectionSources,
bool multiple_selections =
false);
49 vtkCollection* selectionSources,
bool multiple_selections =
false,
int modifier = 0,
50 bool selectBlocks =
false);
52 vtkCollection* selectionSources,
bool multiple_selections =
false,
int modifier = 0,
53 bool selectBlocks =
false);
60 bool ComputeVisibleScalarRange(
const int region[4],
int fieldAssociation,
const char* scalarName,
61 int component,
double range[]);
62 bool ComputeVisibleScalarRange(
63 int fieldAssociation,
const char* scalarName,
int component,
double range[]);
91 bool ConvertDisplayToPointOnSurface(
const int display_position[2],
double world_position[3],
92 double world_normal[3],
bool snapOnMeshPoint =
false);
99 virtual bool IsSelectionAvailable();
104 void SynchronizeGeometryBounds();
112 void ResetCamera(
bool closest =
false,
double offsetRatio = 0.9);
113 void ResetCamera(
double bounds[6],
bool closest =
false,
double offsetRatio = 0.9);
114 void ResetCamera(
double xmin,
double xmax,
double ymin,
double ymax,
double zmin,
double zmax,
115 bool closest =
false,
double offsetRatio = 0.9);
123 virtual void ZoomTo(
vtkSMProxy* representation,
bool closest =
false,
double offsetRatio = 0.9);
130 virtual const char* IsSelectVisibleCellsAvailable();
131 virtual const char* IsSelectVisiblePointsAvailable();
173 void AdjustActiveCamera(
const CameraAdjustmentType&,
const double&);
174 void AdjustActiveCamera(
const int&,
const double&);
175 void AdjustAzimuth(
const double& value);
176 void AdjustElevation(
const double& value);
177 void AdjustRoll(
const double& value);
178 void AdjustZoom(
const double& value);
179 void ApplyIsometricView();
180 void ResetActiveCameraToDirection(
const double& look_x,
const double& look_y,
181 const double& look_z,
const double& up_x,
const double& up_y,
const double& up_z);
182 void ResetActiveCameraToPositiveX();
183 void ResetActiveCameraToNegativeX();
184 void ResetActiveCameraToPositiveY();
185 void ResetActiveCameraToNegativeY();
186 void ResetActiveCameraToPositiveZ();
187 void ResetActiveCameraToNegativeZ();
198 void SynchronizeCameraProperties();
203 virtual bool LastRenderWasInteractive();
220 bool StreamingUpdate(
bool render_if_needed);
262 void ComputeVisibleBounds(
vtkSMProxy* representation,
double* bounds);
268 bool ClearSelectionCache(
bool force =
false);
291 bool SelectFrustumInternal(
const int region[4],
vtkCollection* selectedRepresentations,
292 vtkCollection* selectionSources,
bool multiple_selections,
int fieldAssociation);
294 vtkCollection* selectionSources,
bool multiple_selections,
int fieldAssociation,
int modifier,
297 vtkTypeUInt32
PreRender(
bool interactive)
override;
304 bool FetchLastSelection(
bool multiple_selections,
vtkCollection* selectedRepresentations,
305 vtkCollection* selectionSources,
int modifier,
bool selectBlocks);
317 bool IsInSelectionMode();
324 void NewMasterCallback(
vtkObject* src,
unsigned long event,
void* data);
337 vtkCollection* selectionSources,
bool multiple_selections,
int modifier = 0,
338 bool selectBlocks =
false);
static vtkSMViewProxy * New()
virtual void Update()
Called vtkPVView::Update on the server-side.
unsigned long NewMasterObserverId
void CreateVTKObjects() override
Called at the end of CreateVTKObjects().
virtual const char * GetRepresentationType(vtkSMSourceProxy *producer, int outputPort)
Returns the xml name of the representation proxy to create to show the data produced in this view,...
virtual void MarkDirty(vtkSMProxy *modifiedProxy)
Dirty means this algorithm will execute during next update.
virtual void CopySelectionRepresentationProperties(vtkSMProxy *vtkNotUsed(fromSelectionRep), vtkSMProxy *vtkNotUsed(toSelectionRep))
Function to copy selection representation properties.
implementation for View that includes render window and renderers.
virtual void SetupInteractor(vtkRenderWindowInteractor *iren)
A client process need to set the interactor to enable interactivity.
Proxy for a representations.
virtual void UpdateVTKObjects()
Update the VTK object on the server by pushing the values of all modified properties (un-modified pro...
Store messages for the interpreter.
virtual void RenderForImageCapture()
This method is called whenever the view wants to render to during image capture.
virtual void PostRender(bool vtkNotUsed(interactive))
proxy for a VTK object(s) on a server
void PrintSelf(ostream &os, vtkIndent indent) override
virtual vtkRenderWindow * GetRenderWindow()
Return the vtkRenderWindow used by this view, if any.
virtual vtkTypeUInt32 PreRender(bool vtkNotUsed(interactive))
This method is called before executing code that could cause a render on the underlying vtkPVView.
proxy for a VTK source on a server
virtual const char * GetSelectionRepresentationProxyName()
Get the SelectionRepresentation proxy name.
virtual vtkRenderWindowInteractor * GetInteractor()
Returns the interactor.
Superclass for all view proxies.
helper class that make it easier to hook vtkRenderWindowInteractor and vtkSMViewProxy.
virtual bool GetNeedsUpdate()
Returns true if the subsequent call to Update() will result in an actual update.