24 #ifndef vtkSMRenderViewProxy_h 25 #define vtkSMRenderViewProxy_h 28 #include "vtkRemotingViewsModule.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);
63 vtkCollection* selectionSources,
bool multiple_selections =
false);
70 bool ComputeVisibleScalarRange(
const int region[4],
int fieldAssociation,
const char* scalarName,
71 int component,
double range[]);
72 bool ComputeVisibleScalarRange(
73 int fieldAssociation,
const char* scalarName,
int component,
double range[]);
95 bool ConvertDisplayToPointOnSurface(
96 const int display_position[2],
double world_position[3],
bool snapOnMeshPoint =
false);
103 virtual bool IsSelectionAvailable();
110 void ResetCamera(
double bounds[6]);
111 void ResetCamera(
double xmin,
double xmax,
double ymin,
double ymax,
double zmin,
double zmax);
117 virtual void ZoomTo(
vtkSMProxy* representation);
124 virtual const char* IsSelectVisibleCellsAvailable();
125 virtual const char* IsSelectVisiblePointsAvailable();
159 void SynchronizeCameraProperties();
164 virtual bool LastRenderWasInteractive();
181 bool StreamingUpdate(
bool render_if_needed);
217 void StartCaptureValues();
218 void StopCaptureValues();
223 int GetValueRenderingMode();
224 void SetValueRenderingMode(
int mode);
248 bool SelectFrustumInternal(
const int region[4],
vtkCollection* selectedRepresentations,
249 vtkCollection* selectionSources,
bool multiple_selections,
int fieldAssociation);
251 vtkCollection* selectionSources,
bool multiple_selections,
int fieldAssociation);
253 vtkTypeUInt32
PreRender(
bool interactive)
override;
260 bool FetchLastSelection(
bool multiple_selections,
vtkCollection* selectedRepresentations,
261 vtkCollection* selectionSources,
int modifier,
bool selectBlocks);
273 bool IsInSelectionMode();
276 void ClearSelectionCache(
bool force =
false);
281 void NewMasterCallback(
vtkObject* src,
unsigned long event,
void* data);
294 vtkCollection* selectionSources,
bool multiple_selections,
int modifier = 0,
295 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.
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