Go to the documentation of this file.
20 #ifndef vtkSMViewProxy_h
21 #define vtkSMViewProxy_h
24 #include "vtkRemotingViewsModule.h"
38 class WindowToImageFilter;
53 vtkSetMacro(Enable,
bool);
54 vtkGetMacro(Enable,
bool);
55 vtkBooleanMacro(Enable,
bool);
61 virtual void StillRender();
66 virtual void InteractiveRender();
99 virtual const char* GetRepresentationType(
vtkSMSourceProxy* producer,
int outputPort);
115 return this->CaptureWindow(magnification, magnification);
117 vtkImageData* CaptureWindow(
int magnificationX,
int magnificationY);
128 int WriteImage(
const char* filename,
const char* writerName,
int magnification = 1);
130 const char* filename,
const char* writerName,
int magnificationX,
int magnificationY);
145 vtkGetMacro(NeedsUpdate,
bool);
183 virtual bool MakeRenderWindowInteractor(
bool quiet =
false);
189 static void SetTransparentBackground(
bool val);
190 static bool GetTransparentBackground();
203 virtual bool HideOtherRepresentationsIfNeeded(
vtkSMProxy* repr);
206 return self ?
self->HideOtherRepresentationsIfNeeded(repr) :
false;
224 virtual void RepresentationVisibilityChanged(
vtkSMProxy* repr,
bool new_visibility);
230 self->RepresentationVisibilityChanged(repr, new_visibility);
246 PrepareContextForRendering = vtkCommand::UserEvent + 1,
263 virtual vtkImageData* CaptureWindowInternal(
int magnificationX,
int magnificationY);
294 virtual bool IsContextReadyForRendering();
310 bool GetLocalProcessSupportsInteraction();
317 vtkSetStringMacro(DefaultRepresentationName);
329 static bool TransparentBackground;
332 vtkImageData* CaptureWindowSingle(
int magnificationX,
int magnificationY);
334 friend class vtkSMViewProxyNS::WindowToImageFilter;
335 friend class vtkSMViewProxyNS::CaptureHelper;
static vtkSMProxy * New()
virtual void CreateVTKObjects()
Given a class name (by setting VTKClassName) and server ids (by setting ServerIDs),...
virtual void SetupInteractor(vtkRenderWindowInteractor *iren)
A client process need to set the interactor to enable interactivity.
Proxy for a representations.
vtkImageData * CaptureWindow(int magnification)
Captures a image from this view.
server-manager class for vtkPVDataDeliveryManager.
virtual void RenderForImageCapture()
This method is called whenever the view wants to render to during image capture.
virtual void PostRender(bool vtkNotUsed(interactive))
proxy for a VTK object(s) on a server
virtual vtkRenderWindow * GetRenderWindow()
Return the vtkRenderWindow used by this view, if any.
virtual int ReadXMLAttributes(vtkSMSessionProxyManager *pm, vtkPVXMLElement *element)
Read attributes from an XML element.
virtual vtkTypeUInt32 PreRender(bool vtkNotUsed(interactive))
This method is called before executing code that could cause a render on the underlying vtkPVView.
proxy for a VTK source on a server
void operator=(const vtkSMProxy &)=delete
virtual vtkRenderWindowInteractor * GetInteractor()
Returns the interactor.
char * DefaultRepresentationName
friend class vtkSMViewProxy
These classes have been declared as friends to minimize the public interface exposed by vtkSMProxy.
static bool HideOtherRepresentationsIfNeeded(vtkSMViewProxy *self, vtkSMProxy *repr)
Method used to hide other representations if the view has a <ShowOneRepresentationAtATime/> hint.
Superclass for all view proxies.
void PrintSelf(ostream &os, vtkIndent indent) override
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...
virtual bool HasDirtyRepresentation()
Return true any internal representation is dirty.
virtual vtkTypeUInt32 GetLocation()
Get/Set the location where the underlying VTK-objects are created.