12 #ifndef vtkSMRenderViewProxy_h 13 #define vtkSMRenderViewProxy_h 42 bool SelectSurfaceCells(
const int region[4],
vtkCollection* selectedRepresentations,
43 vtkCollection* selectionSources,
bool multiple_selections =
false,
44 int modifier = 0,
bool select_blocks =
false,
const char* arrayName =
nullptr);
45 bool SelectSurfacePoints(
const int region[4],
vtkCollection* selectedRepresentations,
46 vtkCollection* selectionSources,
bool multiple_selections =
false,
47 int modifier = 0,
bool select_blocks =
false,
const char* arrayName =
nullptr);
48 bool SelectFrustumCells(
const int region[4],
vtkCollection* selectedRepresentations,
49 vtkCollection* selectionSources,
bool multiple_selections =
false);
50 bool SelectFrustumPoints(
const int region[4],
vtkCollection* selectedRepresentations,
51 vtkCollection* selectionSources,
bool multiple_selections =
false);
53 vtkCollection* selectionSources,
bool multiple_selections =
false,
int modifier = 0,
54 bool selectBlocks =
false);
56 vtkCollection* selectionSources,
bool multiple_selections =
false,
int modifier = 0,
57 bool selectBlocks =
false);
64 bool SelectPointsByArrayValue(
vtkCollection* selectedRepresentations,
66 vtkIdType idValue,
bool multiple_selections =
false,
int modifier = 0,
67 bool selectBlocks =
false);
68 bool SelectCellsByArrayValue(
vtkCollection* selectedRepresentations,
70 vtkIdType idValue,
bool multiple_selections =
false,
int modifier = 0,
71 bool selectBlocks =
false);
78 bool ComputeVisibleScalarRange(
const int region[4],
int fieldAssociation,
const char* scalarName,
79 int component,
double range[]);
80 bool ComputeVisibleScalarRange(
81 int fieldAssociation,
const char* scalarName,
int component,
double range[]);
109 bool ConvertDisplayToPointOnSurface(
const int display_position[2],
double world_position[3],
110 double world_normal[3],
bool snapOnMeshPoint =
false);
117 virtual bool IsSelectionAvailable();
122 void SynchronizeGeometryBounds();
130 void ResetCamera(
bool closest =
false,
double offsetRatio = 0.9);
131 void ResetCamera(
double bounds[6],
bool closest =
false,
double offsetRatio = 0.9);
132 void ResetCamera(
double xmin,
double xmax,
double ymin,
double ymax,
double zmin,
double zmax,
133 bool closest =
false,
double offsetRatio = 0.9);
141 virtual void ZoomTo(
vtkSMProxy* representation,
bool closest =
false,
double offsetRatio = 0.9);
148 virtual const char* IsSelectVisibleCellsAvailable();
149 virtual const char* IsSelectVisiblePointsAvailable();
192 void AdjustActiveCamera(
const int&,
const double&);
193 void AdjustAzimuth(
const double&
value);
194 void AdjustElevation(
const double& value);
195 void AdjustRoll(
const double& value);
196 void AdjustZoom(
const double& value);
197 void ApplyIsometricView();
198 void ResetActiveCameraToDirection(
const double& look_x,
const double& look_y,
199 const double& look_z,
const double& up_x,
const double& up_y,
const double& up_z);
200 void ResetActiveCameraToPositiveX();
201 void ResetActiveCameraToNegativeX();
202 void ResetActiveCameraToPositiveY();
203 void ResetActiveCameraToNegativeY();
204 void ResetActiveCameraToPositiveZ();
205 void ResetActiveCameraToNegativeZ();
216 void SynchronizeCameraProperties();
221 virtual bool LastRenderWasInteractive();
232 bool GetNeedsUpdate()
override;
238 bool StreamingUpdate(
bool render_if_needed);
244 const char* GetRepresentationType(
vtkSMSourceProxy* producer,
int outputPort)
override;
280 void ComputeVisibleBounds(
vtkSMProxy* representation,
double* bounds);
286 bool ClearSelectionCache(
bool force =
false);
293 void SetEnableSynchronizableActors(
bool);
294 bool GetEnableSynchronizableActors();
308 int GetNumberOfDisplays();
317 double GetEyeSeparation();
324 bool GetUseOffAxisProjection();
331 bool GetShowBorders();
338 bool GetFullScreen();
353 bool GetShow2DOverlays(
int index);
361 bool GetHasCorners(
int index);
391 vtkSetMacro(ResizingWindow,
bool);
399 const char* GetName(
int index);
401 int GetStereoType(
int index);
402 bool GetStereoEnabled(
int index);
410 int GetViewerId(
int index);
417 int GetNumberOfViewers();
424 int GetId(
int viewerIndex);
431 double GetEyeSeparation(
int viewerIndex);
441 void RenderForImageCapture()
override;
452 void MarkDirty(
vtkSMProxy* modifiedProxy)
override;
454 bool SelectFrustumInternal(
const int region[4],
vtkCollection* selectedRepresentations,
455 vtkCollection* selectionSources,
bool multiple_selections,
int fieldAssociation);
457 vtkCollection* selectionSources,
bool multiple_selections,
int fieldAssociation,
int modifier,
460 vtkTypeUInt32 PreRender(
bool interactive)
override;
461 void PostRender(
bool interactive)
override;
467 bool FetchLastSelection(
bool multiple_selections,
vtkCollection* selectedRepresentations,
468 vtkCollection* selectionSources,
int modifier,
bool selectBlocks);
473 void CreateVTKObjects()
override;
480 bool IsInSelectionMode();
487 void NewMasterCallback(
vtkObject* src,
unsigned long event,
void* data);
489 void UpdateAnariProperties();
502 vtkCollection* selectionSources,
bool multiple_selections,
int modifier = 0,
503 bool selectBlocks =
false);
508 void UpdateStereoProperties();
516 bool multiple_selections,
int modifier = 0,
bool select_blocks =
false);
521 std::unique_ptr<vtkInternals> Internal;
523 bool ResizingWindow =
false;
Proxy for a representations.
#define PARAVIEW_DEPRECATED_IN_6_2_0(reason)
#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