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 ComputeVisibleScalarRange(
const int region[4],
int fieldAssociation,
const char* scalarName,
64 int component,
double range[]);
65 bool ComputeVisibleScalarRange(
66 int fieldAssociation,
const char* scalarName,
int component,
double range[]);
94 bool ConvertDisplayToPointOnSurface(
const int display_position[2],
double world_position[3],
95 double world_normal[3],
bool snapOnMeshPoint =
false);
102 virtual bool IsSelectionAvailable();
107 void SynchronizeGeometryBounds();
115 void ResetCamera(
bool closest =
false,
double offsetRatio = 0.9);
116 void ResetCamera(
double bounds[6],
bool closest =
false,
double offsetRatio = 0.9);
117 void ResetCamera(
double xmin,
double xmax,
double ymin,
double ymax,
double zmin,
double zmax,
118 bool closest =
false,
double offsetRatio = 0.9);
126 virtual void ZoomTo(
vtkSMProxy* representation,
bool closest =
false,
double offsetRatio = 0.9);
133 virtual const char* IsSelectVisibleCellsAvailable();
134 virtual const char* IsSelectVisiblePointsAvailable();
177 void AdjustActiveCamera(
const int&,
const double&);
178 void AdjustAzimuth(
const double&
value);
179 void AdjustElevation(
const double& value);
180 void AdjustRoll(
const double& value);
181 void AdjustZoom(
const double& value);
182 void ApplyIsometricView();
183 void ResetActiveCameraToDirection(
const double& look_x,
const double& look_y,
184 const double& look_z,
const double& up_x,
const double& up_y,
const double& up_z);
185 void ResetActiveCameraToPositiveX();
186 void ResetActiveCameraToNegativeX();
187 void ResetActiveCameraToPositiveY();
188 void ResetActiveCameraToNegativeY();
189 void ResetActiveCameraToPositiveZ();
190 void ResetActiveCameraToNegativeZ();
201 void SynchronizeCameraProperties();
206 virtual bool LastRenderWasInteractive();
217 bool GetNeedsUpdate()
override;
223 bool StreamingUpdate(
bool render_if_needed);
229 const char* GetRepresentationType(
vtkSMSourceProxy* producer,
int outputPort)
override;
265 void ComputeVisibleBounds(
vtkSMProxy* representation,
double* bounds);
271 bool ClearSelectionCache(
bool force =
false);
278 void SetEnableSynchronizableActors(
bool);
279 bool GetEnableSynchronizableActors();
293 int GetNumberOfDisplays();
300 double GetEyeSeparation();
307 bool GetShowBorders();
314 bool GetFullScreen();
330 bool GetHasCorners(
int index);
364 void RenderForImageCapture()
override;
375 void MarkDirty(
vtkSMProxy* modifiedProxy)
override;
377 bool SelectFrustumInternal(
const int region[4],
vtkCollection* selectedRepresentations,
378 vtkCollection* selectionSources,
bool multiple_selections,
int fieldAssociation);
380 vtkCollection* selectionSources,
bool multiple_selections,
int fieldAssociation,
int modifier,
383 vtkTypeUInt32 PreRender(
bool interactive)
override;
384 void PostRender(
bool interactive)
override;
390 bool FetchLastSelection(
bool multiple_selections,
vtkCollection* selectedRepresentations,
391 vtkCollection* selectionSources,
int modifier,
bool selectBlocks);
396 void CreateVTKObjects()
override;
403 bool IsInSelectionMode();
410 void NewMasterCallback(
vtkObject* src,
unsigned long event,
void* data);
423 vtkCollection* selectionSources,
bool multiple_selections,
int modifier = 0,
424 bool selectBlocks =
false);
429 std::unique_ptr<vtkInternals> Internal;
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