24 #ifndef vtkSMRenderViewProxy_h 25 #define vtkSMRenderViewProxy_h 28 #include "vtkPVServerManagerRenderingModule.h" 35 class vtkRenderWindow;
36 class vtkRenderWinwInteractor;
45 void PrintSelf(ostream& os, vtkIndent indent);
51 bool SelectSurfaceCells(
const int region[4], vtkCollection* selectedRepresentations,
52 vtkCollection* selectionSources,
bool multiple_selections =
false);
53 bool SelectSurfacePoints(
const int region[4], vtkCollection* selectedRepresentations,
54 vtkCollection* selectionSources,
bool multiple_selections =
false);
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);
59 bool SelectPolygonPoints(vtkIntArray* polygon, vtkCollection* selectedRepresentations,
60 vtkCollection* selectionSources,
bool multiple_selections =
false);
61 bool SelectPolygonCells(vtkIntArray* polygon, vtkCollection* selectedRepresentations,
62 vtkCollection* selectionSources,
bool multiple_selections =
false);
69 bool ComputeVisibleScalarRange(
const int region[4],
int fieldAssociation,
const char* scalarName,
70 int component,
double range[]);
71 bool ComputeVisibleScalarRange(
72 int fieldAssociation,
const char* scalarName,
int component,
double range[]);
94 bool ConvertDisplayToPointOnSurface(
95 const int display_position[2],
double world_position[3],
bool snapOnMeshPoint =
false);
102 virtual bool IsSelectionAvailable();
109 void ResetCamera(
double bounds[6]);
110 void ResetCamera(
double xmin,
double xmax,
double ymin,
double ymax,
double zmin,
double zmax);
123 virtual const char* IsSelectVisibleCellsAvailable();
124 virtual const char* IsSelectVisiblePointsAvailable();
143 vtkRenderer* GetRenderer();
148 vtkCamera* GetActiveCamera();
158 void SynchronizeCameraProperties();
163 virtual bool LastRenderWasInteractive();
168 double GetZBufferValue(
int x,
int y);
185 bool StreamingUpdate(
bool render_if_needed);
208 vtkFloatArray* CaptureDepthBuffer();
214 vtkFloatArray* GetValuesFloat();
221 void StartCaptureValues();
222 void StopCaptureValues();
227 int GetValueRenderingMode();
228 void SetValueRenderingMode(
int mode);
251 virtual void CaptureWindowInternalRender();
254 bool SelectFrustumInternal(
const int region[4], vtkCollection* selectedRepresentations,
255 vtkCollection* selectionSources,
bool multiple_selections,
int fieldAssociation);
256 bool SelectPolygonInternal(vtkIntArray* polygon, vtkCollection* selectedRepresentations,
257 vtkCollection* selectionSources,
bool multiple_selections,
const char* method);
259 virtual vtkTypeUInt32
PreRender(
bool interactive);
266 bool FetchLastSelection(
bool multiple_selections, vtkCollection* selectedRepresentations,
267 vtkCollection* selectionSources);
279 bool IsInSelectionMode();
282 void ClearSelectionCache(
bool force =
false);
287 void NewMasterCallback(vtkObject* src,
unsigned long event,
void* data);
296 vtkNew<vtkSMViewProxyInteractorHelper> InteractorHelper;
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...
virtual bool GetNeedsUpdate()
Returns true if the subsequent call to Update() will result in an actual update.
vtkSMDataDeliveryManager * DeliveryManager
virtual void PostRender(bool vtkNotUsed(interactive))
Superclass for all view proxies.
static vtkSMViewProxy * New()
virtual void CreateVTKObjects()
Called at the end of CreateVTKObjects().
virtual vtkRenderWindow * GetRenderWindow()
Return the vtkRenderWindow used by this view, if any.
virtual vtkImageData * CaptureWindowInternal(int vtkNotUsed(magnification))
Subclasses should override this method to do the actual image capture.
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))
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
void PrintSelf(ostream &os, vtkIndent indent)
server-manager class for vtkPVDataDeliveryManager.