24 #ifndef vtkSMRenderViewProxy_h 25 #define vtkSMRenderViewProxy_h 36 class vtkRenderWinwInteractor;
50 bool SelectSurfaceCells(
const int region[4],
vtkCollection* selectedRepresentations,
51 vtkCollection* selectionSources,
bool multiple_selections =
false,
52 int modifier = 0,
bool select_blocks =
false,
const char* arrayName =
nullptr);
53 bool SelectSurfacePoints(
const int region[4],
vtkCollection* selectedRepresentations,
54 vtkCollection* selectionSources,
bool multiple_selections =
false,
55 int modifier = 0,
bool select_blocks =
false,
const char* arrayName =
nullptr);
56 bool SelectFrustumCells(
const int region[4],
vtkCollection* selectedRepresentations,
57 vtkCollection* selectionSources,
bool multiple_selections =
false);
58 bool SelectFrustumPoints(
const int region[4],
vtkCollection* selectedRepresentations,
59 vtkCollection* selectionSources,
bool multiple_selections =
false);
61 vtkCollection* selectionSources,
bool multiple_selections =
false,
int modifier = 0,
62 bool selectBlocks =
false);
64 vtkCollection* selectionSources,
bool multiple_selections =
false,
int modifier = 0,
65 bool selectBlocks =
false);
72 bool ComputeVisibleScalarRange(
const int region[4],
int fieldAssociation,
const char* scalarName,
73 int component,
double range[]);
74 bool ComputeVisibleScalarRange(
75 int fieldAssociation,
const char* scalarName,
int component,
double range[]);
97 bool ConvertDisplayToPointOnSurface(
98 const int display_position[2],
double world_position[3],
bool snapOnMeshPoint =
false);
105 virtual bool IsSelectionAvailable();
112 void ResetCamera(
double bounds[6]);
113 void ResetCamera(
double xmin,
double xmax,
double ymin,
double ymax,
double zmin,
double zmax);
119 virtual void ZoomTo(
vtkSMProxy* representation);
126 virtual const char* IsSelectVisibleCellsAvailable();
127 virtual const char* IsSelectVisiblePointsAvailable();
161 void SynchronizeCameraProperties();
166 virtual bool LastRenderWasInteractive();
183 bool StreamingUpdate(
bool render_if_needed);
219 void StartCaptureValues();
220 void StopCaptureValues();
225 int GetValueRenderingMode();
226 void SetValueRenderingMode(
int mode);
250 bool SelectFrustumInternal(
const int region[4],
vtkCollection* selectedRepresentations,
251 vtkCollection* selectionSources,
bool multiple_selections,
int fieldAssociation);
253 vtkCollection* selectionSources,
bool multiple_selections,
int fieldAssociation,
int modifier,
256 vtkTypeUInt32
PreRender(
bool interactive)
override;
263 bool FetchLastSelection(
bool multiple_selections,
vtkCollection* selectedRepresentations,
264 vtkCollection* selectionSources,
int modifier,
bool selectBlocks);
276 bool IsInSelectionMode();
279 void ClearSelectionCache(
bool force =
false);
284 void NewMasterCallback(
vtkObject* src,
unsigned long event,
void* data);
297 vtkCollection* selectionSources,
bool multiple_selections,
int modifier = 0,
298 bool selectBlocks =
false);
Proxy for a representations.
virtual const char * GetRepresentationType(vtkSMSourceProxy *producer, int outputPort)
Returns the xml name of the representation proxy to create to show the data produced in this view...
void CreateVTKObjects() override
Called at the end of CreateVTKObjects().
virtual bool GetNeedsUpdate()
Returns true if the subsequent call to Update() will result in an actual update.
#define VTKREMOTINGVIEWS_EXPORT
virtual void PostRender(bool vtkNotUsed(interactive))
Superclass for all view proxies.
static vtkSMViewProxy * New()
virtual vtkRenderWindow * GetRenderWindow()
Return the vtkRenderWindow used by this view, if any.
Store messages for the interpreter.
void PrintSelf(ostream &os, vtkIndent indent) override
virtual vtkRenderWindowInteractor * GetInteractor()
Returns the interactor.
virtual void MarkDirty(vtkSMProxy *modifiedProxy)
Dirty means this algorithm will execute during next update.
virtual vtkTypeUInt32 PreRender(bool vtkNotUsed(interactive))
This method is called before executing code that could cause a render on the underlying vtkPVView...
virtual void RenderForImageCapture()
This method is called whenever the view wants to render to during image capture.
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.
virtual void Update()
Called vtkPVView::Update on the server-side.
helper class that make it easier to hook vtkRenderWindowInteractor and vtkSMViewProxy.
unsigned long NewMasterObserverId