32 #ifndef vtkSMViewProxy_h 33 #define vtkSMViewProxy_h 50 class WindowToImageFilter;
59 void PrintSelf(ostream& os,
vtkIndent indent)
override;
65 vtkSetMacro(Enable,
bool);
66 vtkGetMacro(Enable,
bool);
67 vtkBooleanMacro(Enable,
bool);
73 virtual void StillRender();
78 virtual void InteractiveRender();
111 virtual const char* GetRepresentationType(
vtkSMSourceProxy* producer,
int outputPort);
127 return this->CaptureWindow(magnification, magnification);
129 vtkImageData* CaptureWindow(
int magnificationX,
int magnificationY);
140 int WriteImage(
const char* filename,
const char* writerName,
int magnification = 1);
142 const char* filename,
const char* writerName,
int magnificationX,
int magnificationY);
157 vtkGetMacro(NeedsUpdate,
bool);
195 virtual bool MakeRenderWindowInteractor(
bool quiet =
false);
201 static void SetTransparentBackground(
bool val);
202 static bool GetTransparentBackground();
215 virtual bool HideOtherRepresentationsIfNeeded(
vtkSMProxy* repr);
218 return self ?
self->HideOtherRepresentationsIfNeeded(repr) :
false;
236 virtual void RepresentationVisibilityChanged(
vtkSMProxy* repr,
bool new_visibility);
242 self->RepresentationVisibilityChanged(repr, new_visibility);
258 PrepareContextForRendering = vtkCommand::UserEvent + 1,
275 virtual vtkImageData* CaptureWindowInternal(
int magnificationX,
int magnificationY);
293 virtual vtkTypeUInt32
PreRender(
bool vtkNotUsed(interactive)) {
return this->GetLocation(); }
306 virtual bool IsContextReadyForRendering();
311 void CreateVTKObjects()
override;
322 bool GetLocalProcessSupportsInteraction();
329 vtkSetStringMacro(DefaultRepresentationName);
341 static bool TransparentBackground;
344 vtkImageData* CaptureWindowSingle(
int magnificationX,
int magnificationY);
346 friend class vtkSMViewProxyNS::WindowToImageFilter;
347 friend class vtkSMViewProxyNS::CaptureHelper;
Proxy for a representations.
vtkImageData * CaptureWindow(int magnification)
Captures a image from this view.
#define VTKREMOTINGVIEWS_EXPORT
virtual void PostRender(bool vtkNotUsed(interactive))
Superclass for all view proxies.
char * DefaultRepresentationName
virtual vtkRenderWindow * GetRenderWindow()
Return the vtkRenderWindow used by this view, if any.
virtual vtkRenderWindowInteractor * GetInteractor()
Returns the interactor.
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.
proxy for a VTK source on a server
The vtkSMSessionProxyManager is esponsible for creating and managing proxies for a given session...
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.
proxy for a VTK object(s) on a server
server-manager class for vtkPVDataDeliveryManager.
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.
static void RepresentationVisibilityChanged(vtkSMViewProxy *self, vtkSMProxy *repr, bool new_visibility)
Certain views maintain properties (or other state) that should be updated when visibility of represen...