12 #ifndef vtkSMRenderViewProxy_h 13 #define vtkSMRenderViewProxy_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();
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();
214 bool GetNeedsUpdate()
override;
220 bool StreamingUpdate(
bool render_if_needed);
226 const char* GetRepresentationType(
vtkSMSourceProxy* producer,
int outputPort)
override;
262 void ComputeVisibleBounds(
vtkSMProxy* representation,
double* bounds);
268 bool ClearSelectionCache(
bool force =
false);
278 void RenderForImageCapture()
override;
289 void MarkDirty(
vtkSMProxy* modifiedProxy)
override;
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;
298 void PostRender(
bool interactive)
override;
304 bool FetchLastSelection(
bool multiple_selections,
vtkCollection* selectedRepresentations,
305 vtkCollection* selectionSources,
int modifier,
bool selectBlocks);
310 void CreateVTKObjects()
override;
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);
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