24 #ifndef vtkSMRenderViewProxy_h 25 #define vtkSMRenderViewProxy_h 49 bool SelectSurfaceCells(
const int region[4],
vtkCollection* selectedRepresentations,
50 vtkCollection* selectionSources,
bool multiple_selections =
false,
51 int modifier = 0,
bool select_blocks =
false,
const char* arrayName =
nullptr);
52 bool SelectSurfacePoints(
const int region[4],
vtkCollection* selectedRepresentations,
53 vtkCollection* selectionSources,
bool multiple_selections =
false,
54 int modifier = 0,
bool select_blocks =
false,
const char* arrayName =
nullptr);
55 bool SelectFrustumCells(
const int region[4],
vtkCollection* selectedRepresentations,
56 vtkCollection* selectionSources,
bool multiple_selections =
false);
57 bool SelectFrustumPoints(
const int region[4],
vtkCollection* selectedRepresentations,
58 vtkCollection* selectionSources,
bool multiple_selections =
false);
60 vtkCollection* selectionSources,
bool multiple_selections =
false,
int modifier = 0,
61 bool selectBlocks =
false);
63 vtkCollection* selectionSources,
bool multiple_selections =
false,
int modifier = 0,
64 bool selectBlocks =
false);
71 bool ComputeVisibleScalarRange(
const int region[4],
int fieldAssociation,
const char* scalarName,
72 int component,
double range[]);
73 bool ComputeVisibleScalarRange(
74 int fieldAssociation,
const char* scalarName,
int component,
double range[]);
102 bool ConvertDisplayToPointOnSurface(
const int display_position[2],
double world_position[3],
103 double world_normal[3],
bool snapOnMeshPoint =
false);
110 virtual bool IsSelectionAvailable();
116 void ResetCamera(
bool closest =
false);
117 void ResetCamera(
double bounds[6],
bool closest =
false);
118 void ResetCamera(
double xmin,
double xmax,
double ymin,
double ymax,
double zmin,
double zmax,
119 bool closest =
false);
125 virtual void ZoomTo(
vtkSMProxy* representation,
bool closest =
false);
132 virtual const char* IsSelectVisibleCellsAvailable();
133 virtual const char* IsSelectVisiblePointsAvailable();
168 void AdjustActiveCamera(
const int&,
const double&);
169 void AdjustAzimuth(
const double&
value);
170 void AdjustElevation(
const double& value);
171 void AdjustRoll(
const double& value);
172 void AdjustZoom(
const double& value);
173 void ApplyIsometricView();
174 void ResetActiveCameraToDirection(
const double& look_x,
const double& look_y,
175 const double& look_z,
const double& up_x,
const double& up_y,
const double& up_z);
176 void ResetActiveCameraToPositiveX();
177 void ResetActiveCameraToNegativeX();
178 void ResetActiveCameraToPositiveY();
179 void ResetActiveCameraToNegativeY();
180 void ResetActiveCameraToPositiveZ();
181 void ResetActiveCameraToNegativeZ();
192 void SynchronizeCameraProperties();
197 virtual bool LastRenderWasInteractive();
208 bool GetNeedsUpdate()
override;
214 bool StreamingUpdate(
bool render_if_needed);
220 const char* GetRepresentationType(
vtkSMSourceProxy* producer,
int outputPort)
override;
256 void ComputeVisibleBounds(
vtkSMProxy* representation,
double* bounds);
266 void RenderForImageCapture()
override;
277 void MarkDirty(
vtkSMProxy* modifiedProxy)
override;
279 bool SelectFrustumInternal(
const int region[4],
vtkCollection* selectedRepresentations,
280 vtkCollection* selectionSources,
bool multiple_selections,
int fieldAssociation);
282 vtkCollection* selectionSources,
bool multiple_selections,
int fieldAssociation,
int modifier,
285 vtkTypeUInt32 PreRender(
bool interactive)
override;
286 void PostRender(
bool interactive)
override;
292 bool FetchLastSelection(
bool multiple_selections,
vtkCollection* selectedRepresentations,
293 vtkCollection* selectionSources,
int modifier,
bool selectBlocks);
298 void CreateVTKObjects()
override;
305 bool IsInSelectionMode();
313 bool ClearSelectionCache(
bool force =
false);
318 void NewMasterCallback(
vtkObject* src,
unsigned long event,
void* data);
331 vtkCollection* selectionSources,
bool multiple_selections,
int modifier = 0,
332 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.
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