32 #ifndef vtkSMViewProxy_h 33 #define vtkSMViewProxy_h 35 #include "vtkPVServerManagerRenderingModule.h" 40 class vtkRenderWindow;
41 class vtkRenderWindowInteractor;
51 void PrintSelf(ostream& os, vtkIndent indent);
57 vtkSetMacro(Enable,
bool);
58 vtkGetMacro(Enable,
bool);
59 vtkBooleanMacro(Enable,
bool);
65 virtual void StillRender();
70 virtual void InteractiveRender();
75 virtual void Update();
103 virtual const char* GetRepresentationType(
vtkSMSourceProxy* producer,
int outputPort);
116 vtkImageData* CaptureWindow(
int magnification);
121 vtkView* GetClientSideView();
127 int WriteImage(
const char* filename,
const char* writerName,
int magnification = 1);
142 vtkGetMacro(NeedsUpdate,
bool);
180 virtual bool MakeRenderWindowInteractor(
bool quiet =
false);
186 static void SetTransparentBackground(
bool val);
187 static bool GetTransparentBackground();
199 virtual bool HideOtherRepresentationsIfNeeded(
vtkSMProxy* repr);
202 return self ?
self->HideOtherRepresentationsIfNeeded(repr) :
false;
228 virtual bool IsContextReadyForRendering();
244 bool GetLocalProcessSupportsInteraction();
246 vtkSetStringMacro(DefaultRepresentationName);
255 static bool TransparentBackground;
260 void ViewTimeChanged();
263 vtkImageData* CaptureWindowSingle(
int magnification);
264 class vtkRendererSaveInfo;
265 vtkRendererSaveInfo* PrepareRendererBackground(vtkRenderer*,
double,
double,
double,
bool);
266 void RestoreRendererBackground(vtkRenderer*, vtkRendererSaveInfo*);
virtual vtkTypeUInt32 GetLocation()
Get/Set the location where the underlying VTK-objects are created.
virtual void PostRender(bool vtkNotUsed(interactive))
virtual int ReadXMLAttributes(vtkSMSessionProxyManager *pm, vtkPVXMLElement *element)
Read attributes from an XML element.
Superclass for all view proxies.
void operator=(const vtkSMProxy &) VTK_DELETE_FUNCTION
char * DefaultRepresentationName
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 vtkTypeUInt32 PreRender(bool vtkNotUsed(interactive))
proxy for a VTK source on a server
The vtkSMSessionProxyManager is esponsible for creating and managing proxies for a given session...
void PrintSelf(ostream &os, vtkIndent indent)
static bool HideOtherRepresentationsIfNeeded(vtkSMViewProxy *self, vtkSMProxy *repr)
Method used to hide other representations if the view has a <ShowOneRepresentationAtATime> hint...
virtual bool HasDirtyRepresentation()
Return true any internal representation is dirty.
static vtkSMProxy * New()
virtual void CreateVTKObjects()
Given a class name (by setting VTKClassName) and server ids (by setting ServerIDs), this methods instantiates the objects on the server(s)
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.
This is used by vtkPVXMLParser to represent an XML document starting at the root element.