12 #ifndef vtkSMRenderViewProxy_h 13 #define vtkSMRenderViewProxy_h 41 bool SelectSurfaceCells(
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 SelectSurfacePoints(
const int region[4],
vtkCollection* selectedRepresentations,
45 vtkCollection* selectionSources,
bool multiple_selections =
false,
46 int modifier = 0,
bool select_blocks =
false,
const char* arrayName =
nullptr);
47 bool SelectFrustumCells(
const int region[4],
vtkCollection* selectedRepresentations,
48 vtkCollection* selectionSources,
bool multiple_selections =
false);
49 bool SelectFrustumPoints(
const int region[4],
vtkCollection* selectedRepresentations,
50 vtkCollection* selectionSources,
bool multiple_selections =
false);
52 vtkCollection* selectionSources,
bool multiple_selections =
false,
int modifier = 0,
53 bool selectBlocks =
false);
55 vtkCollection* selectionSources,
bool multiple_selections =
false,
int modifier = 0,
56 bool selectBlocks =
false);
63 bool SelectPointsByArrayValue(
vtkCollection* selectedRepresentations,
65 vtkIdType idValue,
bool multiple_selections =
false,
int modifier = 0,
66 bool selectBlocks =
false);
67 bool SelectCellsByArrayValue(
vtkCollection* selectedRepresentations,
69 vtkIdType idValue,
bool multiple_selections =
false,
int modifier = 0,
70 bool selectBlocks =
false);
77 bool ComputeVisibleScalarRange(
const int region[4],
int fieldAssociation,
const char* scalarName,
78 int component,
double range[]);
79 bool ComputeVisibleScalarRange(
80 int fieldAssociation,
const char* scalarName,
int component,
double range[]);
108 bool ConvertDisplayToPointOnSurface(
const int display_position[2],
double world_position[3],
109 double world_normal[3],
bool snapOnMeshPoint =
false);
116 virtual bool IsSelectionAvailable();
121 void SynchronizeGeometryBounds();
129 void ResetCamera(
bool closest =
false,
double offsetRatio = 0.9);
130 void ResetCamera(
double bounds[6],
bool closest =
false,
double offsetRatio = 0.9);
131 void ResetCamera(
double xmin,
double xmax,
double ymin,
double ymax,
double zmin,
double zmax,
132 bool closest =
false,
double offsetRatio = 0.9);
140 virtual void ZoomTo(
vtkSMProxy* representation,
bool closest =
false,
double offsetRatio = 0.9);
147 virtual const char* IsSelectVisibleCellsAvailable();
148 virtual const char* IsSelectVisiblePointsAvailable();
191 void AdjustActiveCamera(
const int&,
const double&);
192 void AdjustAzimuth(
const double&
value);
193 void AdjustElevation(
const double& value);
194 void AdjustRoll(
const double& value);
195 void AdjustZoom(
const double& value);
196 void ApplyIsometricView();
197 void ResetActiveCameraToDirection(
const double& look_x,
const double& look_y,
198 const double& look_z,
const double& up_x,
const double& up_y,
const double& up_z);
199 void ResetActiveCameraToPositiveX();
200 void ResetActiveCameraToNegativeX();
201 void ResetActiveCameraToPositiveY();
202 void ResetActiveCameraToNegativeY();
203 void ResetActiveCameraToPositiveZ();
204 void ResetActiveCameraToNegativeZ();
215 void SynchronizeCameraProperties();
220 virtual bool LastRenderWasInteractive();
231 bool GetNeedsUpdate()
override;
237 bool StreamingUpdate(
bool render_if_needed);
243 const char* GetRepresentationType(
vtkSMSourceProxy* producer,
int outputPort)
override;
279 void ComputeVisibleBounds(
vtkSMProxy* representation,
double* bounds);
285 bool ClearSelectionCache(
bool force =
false);
292 void SetEnableSynchronizableActors(
bool);
293 bool GetEnableSynchronizableActors();
307 int GetNumberOfDisplays();
316 double GetEyeSeparation();
323 bool GetUseOffAxisProjection();
330 bool GetShowBorders();
337 bool GetFullScreen();
352 bool GetShow2DOverlays(
int index);
360 bool GetHasCorners(
int index);
389 vtkSetMacro(ResizingWindow,
bool);
397 const char* GetName(
int index);
399 int GetStereoType(
int index);
400 bool GetStereoEnabled(
int index);
408 int GetViewerId(
int index);
415 int GetNumberOfViewers();
422 int GetId(
int viewerIndex);
429 double GetEyeSeparation(
int viewerIndex);
439 void RenderForImageCapture()
override;
450 void MarkDirty(
vtkSMProxy* modifiedProxy)
override;
452 bool SelectFrustumInternal(
const int region[4],
vtkCollection* selectedRepresentations,
453 vtkCollection* selectionSources,
bool multiple_selections,
int fieldAssociation);
455 vtkCollection* selectionSources,
bool multiple_selections,
int fieldAssociation,
int modifier,
458 vtkTypeUInt32 PreRender(
bool interactive)
override;
459 void PostRender(
bool interactive)
override;
465 bool FetchLastSelection(
bool multiple_selections,
vtkCollection* selectedRepresentations,
466 vtkCollection* selectionSources,
int modifier,
bool selectBlocks);
471 void CreateVTKObjects()
override;
478 bool IsInSelectionMode();
485 void NewMasterCallback(
vtkObject* src,
unsigned long event,
void* data);
487 void UpdateAnariProperties();
500 vtkCollection* selectionSources,
bool multiple_selections,
int modifier = 0,
501 bool selectBlocks =
false);
506 void UpdateStereoProperties();
514 bool multiple_selections,
int modifier = 0,
bool select_blocks =
false);
519 std::unique_ptr<vtkInternals> Internal;
521 bool ResizingWindow =
false;
Proxy for a representations.
#define VTKREMOTINGVIEWS_EXPORT
vtkRenderWindow * GetRenderWindow()
Superclass for all view proxies.
static vtkSMViewProxy * New()
Store messages for the interpreter.
void PrintSelf(ostream &os, vtkIndent indent) override
virtual void CopySelectionRepresentationProperties(vtkSMProxy *vtkNotUsed(fromSelectionRep), vtkSMProxy *vtkNotUsed(toSelectionRep))
Function to copy selection representation properties.
virtual vtkRenderWindowInteractor * GetInteractor()
Returns the interactor.
virtual const char * GetSelectionRepresentationProxyName()
Get the SelectionRepresentation proxy name.
virtual void UpdateVTKObjects()
Update the VTK object on the server by pushing the values of all modified properties (un-modified pro...
implementation for View that includes render window and renderers.
proxy for a VTK source on a server
proxy for a VTK object(s) on a server
virtual void SetupInteractor(vtkRenderWindowInteractor *iren)
A client process need to set the interactor to enable interactivity.
helper class that make it easier to hook vtkRenderWindowInteractor and vtkSMViewProxy.
unsigned long NewMasterObserverId