implementation for View that includes render window and renderers. More...
#include <vtkSMRenderViewProxy.h>
Public Types | |
enum | CameraAdjustmentType : int { CameraAdjustmentType::Roll = 0, CameraAdjustmentType::Elevation, CameraAdjustmentType::Azimuth, CameraAdjustmentType::Zoom } |
typedef vtkSMViewProxy | Superclass |
Public Types inherited from vtkSMViewProxy | |
enum | { PrepareContextForRendering = vtkCommand::UserEvent + 1 } |
typedef vtkSMProxy | Superclass |
Public Types inherited from vtkSMProxy | |
enum | ResetPropertiesMode { DEFAULT = 0, ONLY_XML = 1, ONLY_DOMAIN = 2 } |
enum | { COPY_PROXY_PROPERTY_VALUES_BY_REFERENCE = 0, COPY_PROXY_PROPERTY_VALUES_BY_CLONING } |
Flags used for the proxyPropertyCopyFlag argument to the Copy method. More... | |
typedef vtkSMRemoteObject | Superclass |
Public Types inherited from vtkSMRemoteObject | |
typedef vtkSMSessionObject | Superclass |
Public Types inherited from vtkSMSessionObject | |
typedef vtkSMObject | Superclass |
Public Types inherited from vtkSMObject | |
typedef vtkObject | Superclass |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) override |
vtkSMRepresentationProxy * | Pick (int x, int y) |
Convenience method to pick a location. More... | |
vtkSMRepresentationProxy * | PickBlock (int x, int y, unsigned int &flatIndex, int &rank) |
Convenience method to pick a block in a multi-block data set. More... | |
bool | ConvertDisplayToPointOnSurface (const int display_position[2], double world_position[3], double world_normal[3], bool snapOnMeshPoint=false) |
Given a location is display coordinates (pixels), tries to compute and return the world location and normal on a surface, if possible. More... | |
virtual bool | IsSelectionAvailable () |
Checks if color depth is sufficient to support selection. More... | |
void | SynchronizeGeometryBounds () |
Call SynchronizeGeometryBounds server side. More... | |
virtual void | ZoomTo (vtkSMProxy *representation, bool closest=false, double offsetRatio=0.9) |
Convenience method for zooming to a representation. More... | |
void | SetupInteractor (vtkRenderWindowInteractor *iren) override |
A client process need to set the interactor to enable interactivity. More... | |
vtkRenderWindowInteractor * | GetInteractor () override |
Returns the interactor. More... | |
vtkRenderer * | GetRenderer () |
Returns the client-side renderer (composited or 3D). More... | |
void | UpdateVTKObjects () override |
Filter changes to the OSPRay rendering method, to transfer the pathtracing materials from client to server only when they are acutally needed. More... | |
void | SynchronizeCameraProperties () |
This method calls UpdateInformation on the Camera Proxy and sets the Camera properties according to the info properties. More... | |
virtual bool | LastRenderWasInteractive () |
Returns true if the most recent render indeed employed low-res rendering. More... | |
void | Update () override |
Called vtkPVView::Update on the server-side. More... | |
bool | GetNeedsUpdate () override |
We override that method to handle LOD and non-LOD NeedsUpdate in transparent manner. More... | |
bool | StreamingUpdate (bool render_if_needed) |
Called to render a streaming pass. More... | |
const char * | GetRepresentationType (vtkSMSourceProxy *producer, int outputPort) override |
Overridden to check through the various representations that this view can create. More... | |
vtkRenderWindow * | GetRenderWindow () override |
Returns the render window used by this view. More... | |
vtkSMViewProxyInteractorHelper * | GetInteractorHelper () |
Provides access to the vtkSMViewProxyInteractorHelper object that handles the interaction/view sync. More... | |
vtkFloatArray * | CaptureDepthBuffer () |
Access to the Z buffer. More... | |
virtual const char * | GetSelectionRepresentationProxyName () |
Get the SelectionRepresentation proxy name. More... | |
virtual void | CopySelectionRepresentationProperties (vtkSMProxy *vtkNotUsed(fromSelectionRep), vtkSMProxy *vtkNotUsed(toSelectionRep)) |
Function to copy selection representation properties. More... | |
void | ComputeVisibleBounds (vtkSMProxy *representation, double *bounds) |
Compute the bounds of the visible data on the given representation. More... | |
bool | ClearSelectionCache (bool force=false) |
Tries to clear the selection cache (if needed). More... | |
bool | SelectSurfaceCells (const int region[4], vtkCollection *selectedRepresentations, vtkCollection *selectionSources, bool multiple_selections=false, int modifier=0, bool select_blocks=false, const char *arrayName=nullptr) |
Makes a new selection source proxy. More... | |
bool | SelectSurfacePoints (const int region[4], vtkCollection *selectedRepresentations, vtkCollection *selectionSources, bool multiple_selections=false, int modifier=0, bool select_blocks=false, const char *arrayName=nullptr) |
Makes a new selection source proxy. More... | |
bool | SelectFrustumCells (const int region[4], vtkCollection *selectedRepresentations, vtkCollection *selectionSources, bool multiple_selections=false) |
Makes a new selection source proxy. More... | |
bool | SelectFrustumPoints (const int region[4], vtkCollection *selectedRepresentations, vtkCollection *selectionSources, bool multiple_selections=false) |
Makes a new selection source proxy. More... | |
bool | SelectPolygonPoints (vtkIntArray *polygon, vtkCollection *selectedRepresentations, vtkCollection *selectionSources, bool multiple_selections=false, int modifier=0, bool selectBlocks=false) |
Makes a new selection source proxy. More... | |
bool | SelectPolygonCells (vtkIntArray *polygon, vtkCollection *selectedRepresentations, vtkCollection *selectionSources, bool multiple_selections=false, int modifier=0, bool selectBlocks=false) |
Makes a new selection source proxy. More... | |
bool | ComputeVisibleScalarRange (const int region[4], int fieldAssociation, const char *scalarName, int component, double range[]) |
Returns the range for visible elements in the current view. More... | |
bool | ComputeVisibleScalarRange (int fieldAssociation, const char *scalarName, int component, double range[]) |
Returns the range for visible elements in the current view. More... | |
void | ResetCamera (bool closest=false, double offsetRatio=0.9) |
For backwards compatibility in Python scripts. More... | |
void | ResetCamera (double bounds[6], bool closest=false, double offsetRatio=0.9) |
For backwards compatibility in Python scripts. More... | |
void | ResetCamera (double xmin, double xmax, double ymin, double ymax, double zmin, double zmax, bool closest=false, double offsetRatio=0.9) |
For backwards compatibility in Python scripts. More... | |
virtual const char * | IsSelectVisibleCellsAvailable () |
Similar to IsSelectionAvailable(), however, on failure returns the error message otherwise 0. More... | |
virtual const char * | IsSelectVisiblePointsAvailable () |
Similar to IsSelectionAvailable(), however, on failure returns the error message otherwise 0. More... | |
vtkCamera * | GetActiveCamera () |
Returns the client-side active camera object. More... | |
void | AdjustActiveCamera (const CameraAdjustmentType &, const double &) |
Returns the client-side active camera object. More... | |
void | AdjustActiveCamera (const int &, const double &) |
Returns the client-side active camera object. More... | |
void | AdjustAzimuth (const double &value) |
Returns the client-side active camera object. More... | |
void | AdjustElevation (const double &value) |
Returns the client-side active camera object. More... | |
void | AdjustRoll (const double &value) |
Returns the client-side active camera object. More... | |
void | AdjustZoom (const double &value) |
Returns the client-side active camera object. More... | |
void | ApplyIsometricView () |
Returns the client-side active camera object. More... | |
void | ResetActiveCameraToDirection (const double &look_x, const double &look_y, const double &look_z, const double &up_x, const double &up_y, const double &up_z) |
Returns the client-side active camera object. More... | |
void | ResetActiveCameraToPositiveX () |
Returns the client-side active camera object. More... | |
void | ResetActiveCameraToNegativeX () |
Returns the client-side active camera object. More... | |
void | ResetActiveCameraToPositiveY () |
Returns the client-side active camera object. More... | |
void | ResetActiveCameraToNegativeY () |
Returns the client-side active camera object. More... | |
void | ResetActiveCameraToPositiveZ () |
Returns the client-side active camera object. More... | |
void | ResetActiveCameraToNegativeZ () |
Returns the client-side active camera object. More... | |
Public Member Functions inherited from vtkSMViewProxy | |
void | PrintSelf (ostream &os, vtkIndent indent) override |
virtual void | StillRender () |
Renders the view using full resolution. More... | |
virtual void | InteractiveRender () |
Renders the view using lower resolution is possible. More... | |
virtual bool | CanDisplayData (vtkSMSourceProxy *producer, int outputPort) |
Returns true if the view can display the data produced by the producer's port. More... | |
virtual vtkSMRepresentationProxy * | CreateDefaultRepresentation (vtkSMProxy *, int) |
Create a default representation for the given source proxy. More... | |
virtual vtkSMRepresentationProxy * | FindRepresentation (vtkSMSourceProxy *producer, int outputPort) |
Finds the representation proxy showing the data produced by the provided producer, if any. More... | |
vtkView * | GetClientSideView () |
Returns the client-side vtkView, if any. More... | |
int | WriteImage (const char *filename, const char *writerName, int magnification=1) |
Saves a screenshot of the view to disk. More... | |
int | WriteImage (const char *filename, const char *writerName, int magnificationX, int magnificationY) |
virtual bool | HasDirtyRepresentation () |
Return true any internal representation is dirty. More... | |
virtual bool | MakeRenderWindowInteractor (bool quiet=false) |
Creates a default render window interactor for the vtkRenderWindow and sets it up on the local process if the local process supports interaction. More... | |
virtual void | SetEnable (bool) |
Enable/Disable a view. More... | |
virtual bool | GetEnable () |
Enable/Disable a view. More... | |
virtual void | EnableOn () |
Enable/Disable a view. More... | |
virtual void | EnableOff () |
Enable/Disable a view. More... | |
vtkImageData * | CaptureWindow (int magnification) |
Captures a image from this view. More... | |
vtkImageData * | CaptureWindow (int magnificationX, int magnificationY) |
Captures a image from this view. More... | |
virtual bool | HideOtherRepresentationsIfNeeded (vtkSMProxy *repr) |
Method used to hide other representations if the view has a <ShowOneRepresentationAtATime/> hint. More... | |
virtual void | RepresentationVisibilityChanged (vtkSMProxy *repr, bool new_visibility) |
Certain views maintain properties (or other state) that should be updated when visibility of representations is changed e.g. More... | |
Public Member Functions inherited from vtkSMProxy | |
void | SetAnnotation (const char *key, const char *value) |
const char * | GetAnnotation (const char *key) |
Retrieve an annotation with a given key. More... | |
void | RemoveAnnotation (const char *key) |
Remove a given annotation based on its key to the proxy. More... | |
void | RemoveAllAnnotations () |
Remove all proxy annotations. More... | |
bool | HasAnnotation (const char *key) |
Return true if a given annotation exists. More... | |
int | GetNumberOfAnnotations () |
Return the number of available annotations. More... | |
const char * | GetAnnotationKeyAt (int index) |
Return the nth key of the available annotations. More... | |
void | SetLocation (vtkTypeUInt32) override |
Get/Set the location where the underlying VTK-objects are created. More... | |
virtual vtkSMProperty * | GetProperty (const char *name) |
Return the property with the given name. More... | |
virtual vtkSMProperty * | GetProperty (const char *name, int selfOnly) |
Return a property of the given name from self or one of the sub-proxies. More... | |
const char * | GetPropertyName (vtkSMProperty *prop) |
Given a property pointer, returns the name that was used to add it to the proxy. More... | |
virtual void | RecreateVTKObjects () |
Recreate the VTK object for this proxy. More... | |
void | InvokeCommand (const char *name) |
Convenience method equivalent to UpdateProperty(name, 1). More... | |
virtual vtkSMPropertyIterator * | NewPropertyIterator () |
Returns a new (initialized) iterator of the properties. More... | |
unsigned int | GetNumberOfConsumers () |
Returns the number of consumers. More... | |
vtkSMProxy * | GetConsumerProxy (unsigned int idx) |
Returns the consumer of given index. More... | |
vtkSMProperty * | GetConsumerProperty (unsigned int idx) |
Returns the corresponding property of the consumer of given index. More... | |
unsigned int | GetNumberOfProducers () |
Returns the number of proxies this proxy depends on (uses or is connected to through the pipeline). More... | |
vtkSMProxy * | GetProducerProxy (unsigned int idx) |
Returns a proxy this proxy depends on, given index. More... | |
vtkSMProperty * | GetProducerProperty (unsigned int idx) |
Returns the property holding a producer proxy given an index. More... | |
virtual void | UpdatePropertyInformation () |
Updates all property information by calling UpdateInformation() and populating the values. More... | |
virtual void | UpdatePropertyInformation (vtkSMProperty *prop) |
Similar to UpdatePropertyInformation() but updates only the given property. More... | |
virtual void | MarkAllPropertiesAsModified () |
Marks all properties as modified. More... | |
virtual void | ResetPropertiesToXMLDefaults () |
Use this method to set all properties on this proxy to their default values. More... | |
virtual void | ResetPropertiesToDomainDefaults () |
Use this method to set all properties on this proxy to their default domains. More... | |
virtual void | ResetPropertiesToDefault (ResetPropertiesMode mode=DEFAULT) |
Use this method to set all properties on this proxy to their default domain or values. More... | |
virtual void | MarkModified (vtkSMProxy *modifiedProxy) |
Calls MarkDirty() and invokes ModifiedEvent. More... | |
bool | IsDeprecated () |
Returns true if the proxy has a deprecation tag. More... | |
void | InitializeAndCopyFromProxy (vtkSMProxy *source) |
Given a source proxy, makes this proxy point to the same server-side object (with a new id). More... | |
vtkObjectBase * | GetClientSideObject () |
Returns the client side object associated with the VTKObjectID (if any). More... | |
virtual vtkPVXMLElement * | SaveXMLState (vtkPVXMLElement *root) |
Saves the state of the proxy. More... | |
virtual vtkPVXMLElement * | SaveXMLState (vtkPVXMLElement *root, vtkSMPropertyIterator *iter) |
The iterator is use to filter the property available on the given proxy. More... | |
virtual int | LoadXMLState (vtkPVXMLElement *element, vtkSMProxyLocator *locator) |
Loads the proxy state from the XML element. More... | |
void | UpdateSelfAndAllInputs () |
This method call UpdateVTKObjects on the current pipeline by starting at the sources. More... | |
bool | GetIsSubProxy () |
A proxy instance can be a sub-proxy for some other proxy. More... | |
vtkSMProxy * | GetParentProxy () |
If this instance is a sub-proxy, this method will return the proxy of which this instance is an immediate sub-proxy. More... | |
vtkSMProxy * | GetTrueParentProxy () |
Call GetParentProxy() recursively till a proxy that is not a subproxy of any other proxy is found. More... | |
void | EnableLocalPushOnly () override |
Allow to switch off any push of state change to the server for that particular object. More... | |
void | DisableLocalPushOnly () override |
Enable the given remote object to communicate its state normally to the server location. More... | |
const vtkSMMessage * | GetFullState () override |
This method return the full object state that can be used to create that object from scratch. More... | |
void | LoadState (const vtkSMMessage *msg, vtkSMProxyLocator *locator) override |
This method is used to initialise the object to the given state If the definitionOnly Flag is set to True the proxy won't load the properties values and just setup the new proxy hierarchy with all subproxy globalID set. More... | |
vtkSMPropertyGroup * | GetPropertyGroup (size_t index) const |
Returns the property group at index for the proxy. More... | |
size_t | GetNumberOfPropertyGroups () const |
Returns the number of property groups that the proxy contains. More... | |
const char * | GetLogNameOrDefault () |
A helper that makes up an default name if none is provided. More... | |
bool | GetPropertiesModified () |
virtual std::vector< std::string > | GetPropertiesWithDifferentValues (vtkSMProxy *otherProxy) |
Return the property names that have values different from the otherProxy argument. More... | |
bool | UpdateProperty (const char *name) |
Update the value of one property (pushed to the server) if it is modified. More... | |
bool | UpdateProperty (const char *name, int force) |
Update the value of one property (pushed to the server) if it is modified. More... | |
virtual char * | GetVTKClassName () |
Returns the type of object managed by the proxy. More... | |
virtual void | SetVTKClassName (const char *) |
the type of object created by the proxy. More... | |
virtual char * | GetXMLName () |
Assigned by the XML parser. More... | |
virtual char * | GetXMLGroup () |
Assigned by the XML parser. More... | |
virtual char * | GetXMLLabel () |
Assigned by the XML parser. More... | |
void | Copy (vtkSMProxy *src) |
Copies values of all the properties and sub-proxies from src. More... | |
void | Copy (vtkSMProxy *src, const char *exceptionClass) |
Copies values of all the properties and sub-proxies from src. More... | |
virtual void | Copy (vtkSMProxy *src, const char *exceptionClass, int proxyPropertyCopyFlag) |
Copies values of all the properties and sub-proxies from src. More... | |
virtual vtkSMDocumentation * | GetDocumentation () |
Returns the documentation for this proxy. More... | |
virtual vtkPVXMLElement * | GetHints () |
The server manager configuration XML may define <Hints/> element for a proxy. More... | |
virtual int | GetObjectsCreated () |
Returns if the VTK objects for this proxy have been created. More... | |
bool | GatherInformation (vtkPVInformation *information) |
Gathers information about this proxy. More... | |
bool | GatherInformation (vtkPVInformation *information, vtkTypeUInt32 location) |
Gathers information about this proxy. More... | |
void | PrototypeOn () override |
Allow user to set the remote object to be discard for Undo/Redo action. More... | |
void | PrototypeOff () override |
Allow user to set the remote object to be discard for Undo/Redo action. More... | |
void | SetPrototype (bool undo) override |
Allow user to set the remote object to be discard for Undo/Redo action. More... | |
void | SetLogName (const char *name) |
Log name is a name for this proxy that will be used when logging status messages. More... | |
virtual char * | GetLogName () |
Log name is a name for this proxy that will be used when logging status messages. More... | |
Public Member Functions inherited from vtkSMRemoteObject | |
void | SetSession (vtkSMSession *) override |
Override the SetSession so if the object already have an ID we automatically register it to the associated session. More... | |
bool | HasGlobalID () |
Allow the user to test if the RemoteObject has already a GlobalID without assigning a new one to it. More... | |
virtual bool | IsLocalPushOnly () |
Let the session be aware that even if the Location is client only, the message should not be send to the server for a general broadcast. More... | |
virtual vtkTypeUInt32 | GetLocation () |
Get/Set the location where the underlying VTK-objects are created. More... | |
virtual vtkTypeUInt32 | GetGlobalID () |
Get the global unique id for this object. More... | |
const char * | GetGlobalIDAsString () |
Get the global unique id for this object. More... | |
bool | IsPrototype () |
Allow user to set the remote object to be discard for Undo/Redo action. More... | |
Public Member Functions inherited from vtkSMSessionObject | |
virtual vtkSMSessionProxyManager * | GetSessionProxyManager () |
Return the corresponding ProxyManager if any. More... | |
virtual vtkSMSession * | GetSession () |
Get/Set the session on wihch this object exists. More... | |
Public Member Functions inherited from vtkObject | |
vtkBaseTypeMacro (vtkObject, vtkObjectBase) | |
virtual void | DebugOn () |
virtual void | DebugOff () |
bool | GetDebug () |
void | SetDebug (bool debugFlag) |
virtual void | Modified () |
virtual vtkMTimeType | GetMTime () |
void | RemoveObserver (unsigned long tag) |
void | RemoveObservers (unsigned long event) |
void | RemoveObservers (const char *event) |
void | RemoveAllObservers () |
int | HasObserver (unsigned long event) |
int | HasObserver (const char *event) |
int | InvokeEvent (unsigned long event) |
int | InvokeEvent (const char *event) |
unsigned long | AddObserver (unsigned long event, vtkCommand *, float priority=0.0f) |
unsigned long | AddObserver (const char *event, vtkCommand *, float priority=0.0f) |
vtkCommand * | GetCommand (unsigned long tag) |
void | RemoveObserver (vtkCommand *) |
void | RemoveObservers (unsigned long event, vtkCommand *) |
void | RemoveObservers (const char *event, vtkCommand *) |
int | HasObserver (unsigned long event, vtkCommand *) |
int | HasObserver (const char *event, vtkCommand *) |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f) |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
unsigned long | AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
int | InvokeEvent (unsigned long event, void *callData) |
int | InvokeEvent (const char *event, void *callData) |
unsigned long | AddObserver (unsigned long event, vtkCommand *, float priority=0.0f) |
unsigned long | AddObserver (const char *event, vtkCommand *, float priority=0.0f) |
vtkCommand * | GetCommand (unsigned long tag) |
void | RemoveObserver (vtkCommand *) |
void | RemoveObservers (unsigned long event, vtkCommand *) |
void | RemoveObservers (const char *event, vtkCommand *) |
int | HasObserver (unsigned long event, vtkCommand *) |
int | HasObserver (const char *event, vtkCommand *) |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f) |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
unsigned long | AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
int | InvokeEvent (unsigned long event, void *callData) |
int | InvokeEvent (const char *event, void *callData) |
Public Member Functions inherited from vtkObjectBase | |
const char * | GetClassName () const |
virtual void | Delete () |
virtual void | FastDelete () |
void | Print (ostream &os) |
virtual void | Register (vtkObjectBase *o) |
virtual void | UnRegister (vtkObjectBase *o) |
void | SetReferenceCount (int) |
virtual void | PrintHeader (ostream &os, vtkIndent indent) |
virtual void | PrintTrailer (ostream &os, vtkIndent indent) |
int | GetReferenceCount () |
void | PrintRevisions (ostream &) |
virtual void | PrintHeader (ostream &os, vtkIndent indent) |
virtual void | PrintTrailer (ostream &os, vtkIndent indent) |
int | GetReferenceCount () |
void | PrintRevisions (ostream &) |
Static Public Member Functions | |
static vtkSMRenderViewProxy * | New () |
static int | IsTypeOf (const char *type) |
static vtkSMRenderViewProxy * | SafeDownCast (vtkObject *o) |
Static Public Member Functions inherited from vtkSMViewProxy | |
static vtkSMViewProxy * | New () |
static int | IsTypeOf (const char *type) |
static vtkSMViewProxy * | SafeDownCast (vtkObject *o) |
static vtkSMViewProxy * | FindView (vtkSMProxy *repr, const char *reggroup="views") |
Helper method to locate a view to which the representation has been added. More... | |
static void | SetTransparentBackground (bool val) |
Sets whether screenshots have a transparent background. More... | |
static bool | GetTransparentBackground () |
Sets whether screenshots have a transparent background. More... | |
static bool | HideOtherRepresentationsIfNeeded (vtkSMViewProxy *self, vtkSMProxy *repr) |
Method used to hide other representations if the view has a <ShowOneRepresentationAtATime/> hint. More... | |
static void | RepresentationVisibilityChanged (vtkSMViewProxy *self, vtkSMProxy *repr, bool new_visibility) |
Certain views maintain properties (or other state) that should be updated when visibility of representations is changed e.g. More... | |
Static Public Member Functions inherited from vtkSMProxy | |
static vtkSMProxy * | New () |
static int | IsTypeOf (const char *type) |
static vtkSMProxy * | SafeDownCast (vtkObject *o) |
Static Public Member Functions inherited from vtkSMRemoteObject | |
static int | IsTypeOf (const char *type) |
static vtkSMRemoteObject * | SafeDownCast (vtkObject *o) |
Static Public Member Functions inherited from vtkSMSessionObject | |
static vtkSMSessionObject * | New () |
static int | IsTypeOf (const char *type) |
static vtkSMSessionObject * | SafeDownCast (vtkObject *o) |
Static Public Member Functions inherited from vtkSMObject | |
static vtkSMObject * | New () |
static int | IsTypeOf (const char *type) |
static vtkSMObject * | SafeDownCast (vtkObject *o) |
static std::string | CreatePrettyLabel (const std::string &name) |
Return a well-formated label using provided name by adding spaces between lower cases and upper cases: More... | |
Static Public Member Functions inherited from vtkObject | |
static vtkObject * | New () |
static void | BreakOnError () |
static void | SetGlobalWarningDisplay (int val) |
static void | GlobalWarningDisplayOn () |
static void | GlobalWarningDisplayOff () |
static int | GetGlobalWarningDisplay () |
static void | SetGlobalWarningDisplay (int val) |
static void | GlobalWarningDisplayOn () |
static void | GlobalWarningDisplayOff () |
static int | GetGlobalWarningDisplay () |
Static Public Member Functions inherited from vtkObjectBase | |
static vtkTypeBool | IsTypeOf (const char *name) |
static vtkObjectBase * | New () |
static vtkObjectBase * | New () |
Protected Member Functions | |
vtkSMRenderViewProxy () | |
~vtkSMRenderViewProxy () override | |
void | RenderForImageCapture () override |
Overridden to call this->InteractiveRender() if "UseInteractiveRenderingForScreenshots" is true. More... | |
void | UpdateLOD () |
Calls UpdateLOD() on the vtkPVRenderView. More... | |
void | MarkDirty (vtkSMProxy *modifiedProxy) override |
Overridden to ensure that we clean up the selection cache on the server side. More... | |
bool | SelectFrustumInternal (const int region[4], vtkCollection *selectedRepresentations, vtkCollection *selectionSources, bool multiple_selections, int fieldAssociation) |
bool | SelectPolygonInternal (vtkIntArray *polygon, vtkCollection *selectedRepresentations, vtkCollection *selectionSources, bool multiple_selections, int fieldAssociation, int modifier, bool selectBlocks) |
vtkTypeUInt32 | PreRender (bool interactive) override |
void | PostRender (bool interactive) override |
bool | FetchLastSelection (bool multiple_selections, vtkCollection *selectedRepresentations, vtkCollection *selectionSources, int modifier, bool selectBlocks) |
Fetches the LastSelection from the data-server and then converts it to a selection source proxy and returns that. More... | |
void | CreateVTKObjects () override |
Called at the end of CreateVTKObjects(). More... | |
bool | IsInSelectionMode () |
Returns true if the proxy is in interaction mode that corresponds to making a selection i.e. More... | |
void | NewMasterCallback (vtkObject *src, unsigned long event, void *data) |
Protected Member Functions inherited from vtkSMViewProxy | |
vtkSMViewProxy () | |
~vtkSMViewProxy () override | |
virtual vtkImageData * | CaptureWindowInternal (int magnificationX, int magnificationY) |
Capture an image from the view's render window. More... | |
virtual vtkTypeUInt32 | PreRender (bool vtkNotUsed(interactive)) |
This method is called before executing code that could cause a render on the underlying vtkPVView. More... | |
virtual void | PostRender (bool vtkNotUsed(interactive)) |
virtual bool | IsContextReadyForRendering () |
Subclasses should override this method and return false if the rendering context is not ready for rendering at this moment. More... | |
void | CreateVTKObjects () override |
Called at the end of CreateVTKObjects(). More... | |
int | ReadXMLAttributes (vtkSMSessionProxyManager *pm, vtkPVXMLElement *element) override |
Read attributes from an XML element. More... | |
bool | GetLocalProcessSupportsInteraction () |
Convenience method to call vtkPVView::SafeDownCast(this->GetClientSideObject())->GetLocalProcessSupportsInteraction();. More... | |
virtual vtkSMDataDeliveryManagerProxy * | GetDeliveryManager () |
Provides access to the delivery manager proxy, if any. More... | |
virtual void | SetDefaultRepresentationName (const char *) |
Protected Member Functions inherited from vtkSMProxy | |
vtkSMProxy () | |
~vtkSMProxy () override | |
void | ExecuteStream (const vtkClientServerStream &msg, bool ignore_errors=false, vtkTypeUInt32 location=0) |
Invoke that takes a vtkClientServerStream as the argument. More... | |
virtual void | UpdateAndPushAnnotationState () |
virtual void | AddProperty (const char *name, vtkSMProperty *prop) |
Add a property with the given key (name). More... | |
virtual void | MarkConsumersAsDirty (vtkSMProxy *modifiedProxy) |
Calls MarkDirtyFromProducer on all consumers. More... | |
virtual void | MarkDirtyFromProducer (vtkSMProxy *modifiedProxy, vtkSMProxy *producer, vtkSMProperty *property) |
MarkConsumersAsDirty calls this method on each consumer, instead of directly calling MarkDirty on the consumer. More... | |
void | MarkInputsAsDirty () |
This method is called by vtkSMRepresentationProxy whenever the time request for the pipeline may have potentially changed. More... | |
void | RemoveAllObservers () |
Cleanup code. More... | |
virtual void | SetPropertyModifiedFlag (const char *name, int flag) |
Note on property modified flags: The modified flag of each property associated with a proxy is stored in the proxy object instead of in the property itself. More... | |
void | AddSubProxy (const char *name, vtkSMProxy *proxy, int overrideOK=0) |
Add a sub-proxy. More... | |
void | RemoveSubProxy (const char *name) |
Remove a sub-proxy. More... | |
vtkSMProxy * | GetSubProxy (const char *name) |
Returns a sub-proxy. More... | |
vtkSMProxy * | GetSubProxy (unsigned int index) |
Returns a sub-proxy. More... | |
const char * | GetSubProxyName (unsigned int index) |
Returns the name used to store sub-proxy. More... | |
const char * | GetSubProxyName (vtkSMProxy *) |
Returns the name used to store sub-proxy. More... | |
unsigned int | GetNumberOfSubProxies () |
Returns the number of sub-proxies. More... | |
virtual void | AddConsumer (vtkSMProperty *property, vtkSMProxy *proxy) |
Called by a proxy property, this adds the property,proxy pair to the list of consumers. More... | |
virtual void | RemoveConsumer (vtkSMProperty *property, vtkSMProxy *proxy) |
Remove the property,proxy pair from the list of consumers. More... | |
virtual void | RemoveAllConsumers () |
Remove all consumers. More... | |
void | AddProducer (vtkSMProperty *property, vtkSMProxy *proxy) |
Called by an proxy/input property to add property, proxy pair to the list of producers. More... | |
void | RemoveProducer (vtkSMProperty *property, vtkSMProxy *proxy) |
Remove the property,proxy pair from the list of producers. More... | |
virtual void | PostUpdateData (bool using_cache) |
This method is called after the algorithm(s) (if any) associated with this proxy execute. More... | |
void | PostUpdateDataSelfOnly (bool using_cache) |
This is called by PostUpdateData to only update state for this proxy without iterative over producers. More... | |
bool | WarnIfDeprecated () |
If a proxy is deprecated, prints a warning. More... | |
bool | LoadPluginIfEnsured () |
If a proxy need to ensure a plugin is loaded, make sure it is. More... | |
virtual void | UpdatePipelineInformation () |
This method simply iterates over subproxies and calls UpdatePipelineInformation() on them. More... | |
void | LinkProperty (vtkSMProperty *inputProperty, vtkSMProperty *outputProperty) |
Links properties such that when inputProperty's checked or unchecked values are changed, the outputProperty's corresponding values are also changed. More... | |
vtkSMPropertyGroup * | NewPropertyGroup (vtkPVXMLElement *propElement) |
Parses the XML to create a new property group. More... | |
void | AppendPropertyGroup (vtkSMPropertyGroup *group) |
Adds a property groups. More... | |
void | ExposeSubProxyProperty (const char *subproxy_name, const char *property_name, const char *exposed_name, int overrideOK=0) |
Expose a subproxy property from the base proxy. More... | |
virtual void | ExecuteSubProxyEvent (vtkSMProxy *o, unsigned long event, void *data) |
Handle events fired by subproxies. More... | |
virtual int | CreateSubProxiesAndProperties (vtkSMSessionProxyManager *pm, vtkPVXMLElement *element) |
virtual void | UpdatePropertyInformationInternal (vtkSMProperty *prop=nullptr) |
Called to update the property information on the property. More... | |
void | RebuildStateForProperties () |
vtkSMProxy tracks state of properties on this proxy in an internal State object. More... | |
virtual void | SetLogNameInternal (const char *name, bool propagate_to_subproxies, bool propagate_to_proxylistdomains) |
Internal method used by SetLogName More... | |
bool | ArePropertiesModified () |
Indicates if any properties are modified. More... | |
void | SetHints (vtkPVXMLElement *hints) |
void | SetDeprecated (vtkPVXMLElement *deprecated) |
void | SetEnsurePluginLoaded (vtkPVXMLElement *ensurePluginLoaded) |
Set the "EnsurePluginLoaded" XML element that is used in LoadPluginIfEnsured. More... | |
void | SetXMLElement (vtkPVXMLElement *element) |
vtkSMProxy (const vtkSMProxy &)=delete | |
void | operator= (const vtkSMProxy &)=delete |
virtual const vtkClientServerStream & | GetLastResult () |
Get the last result. More... | |
virtual const vtkClientServerStream & | GetLastResult (vtkTypeUInt32 location) |
Get the last result. More... | |
virtual void | SetXMLName (const char *) |
Assigned by the XML parser. More... | |
virtual void | SetXMLGroup (const char *) |
Assigned by the XML parser. More... | |
virtual void | SetXMLLabel (const char *) |
Assigned by the XML parser. More... | |
virtual void | SetXMLSubProxyName (const char *) |
Assigned by the XML parser. More... | |
vtkSMProperty * | NewProperty (const char *name) |
Creates a new property and initializes it by calling ReadXMLAttributes() with the right XML element. More... | |
vtkSMProperty * | NewProperty (const char *name, vtkPVXMLElement *propElement) |
Creates a new property and initializes it by calling ReadXMLAttributes() with the right XML element. More... | |
void | SetupExposedProperties (const char *subproxy_name, vtkPVXMLElement *element) |
Read attributes from an XML element. More... | |
void | SetupSharedProperties (vtkSMProxy *subproxy, vtkPVXMLElement *element) |
Read attributes from an XML element. More... | |
virtual void | SetSIClassName (const char *) |
SIClassName identifies the classname for the helper on the server side. More... | |
virtual char * | GetSIClassName () |
SIClassName identifies the classname for the helper on the server side. More... | |
Protected Member Functions inherited from vtkSMRemoteObject | |
vtkSMRemoteObject () | |
Default constructor. More... | |
~vtkSMRemoteObject () override | |
Destructor. More... | |
void | PushState (vtkSMMessage *msg) |
Subclasses can call this method to send a message to its state object on the server processes specified. More... | |
bool | PullState (vtkSMMessage *msg) |
Subclasses can call this method to pull the state from the state-object on the server processes specified. More... | |
void | SetGlobalID (vtkTypeUInt32 guid) |
Set the GlobalUniqueId. More... | |
vtkTypeUInt32 | GetFilteredLocation () |
Protected Member Functions inherited from vtkSMSessionObject | |
vtkSMSessionObject () | |
~vtkSMSessionObject () override | |
Protected Member Functions inherited from vtkSMObject | |
vtkSMObject () | |
~vtkSMObject () override | |
Protected Member Functions inherited from vtkObject | |
vtkObject () | |
virtual | ~vtkObject () |
void | RegisterInternal (vtkObjectBase *, vtkTypeBool check) VTK_OVERRIDE |
void | UnRegisterInternal (vtkObjectBase *, vtkTypeBool check) VTK_OVERRIDE |
void | InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL) |
void | InternalReleaseFocus () |
void | InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL) |
void | InternalReleaseFocus () |
Protected Member Functions inherited from vtkObjectBase | |
vtkObjectBase () | |
virtual | ~vtkObjectBase () |
virtual void | CollectRevisions (ostream &) |
virtual void | ReportReferences (vtkGarbageCollector *) |
vtkObjectBase (const vtkObjectBase &) | |
void | operator= (const vtkObjectBase &) |
implementation for View that includes render window and renderers.
vtkSMRenderViewProxy is a 3D view consisting for a render window and two renderers: 1 for 3D geometry and 1 for overlaid 2D geometry.
Definition at line 27 of file vtkSMRenderViewProxy.h.
Definition at line 31 of file vtkSMRenderViewProxy.h.
|
strong |
Enumerator | |
---|---|
Roll | |
Elevation | |
Azimuth | |
Zoom |
Definition at line 160 of file vtkSMRenderViewProxy.h.
|
protected |
|
overrideprotected |
|
static |
|
virtual |
Reimplemented from vtkSMViewProxy.
Reimplemented in vtkSMMultiSliceViewProxy, and vtkSMOrthographicSliceViewProxy.
Reimplemented from vtkSMViewProxy.
Reimplemented in vtkSMMultiSliceViewProxy, and vtkSMOrthographicSliceViewProxy.
|
static |
|
overridevirtual |
Reimplemented from vtkSMProxy.
bool vtkSMRenderViewProxy::SelectSurfaceCells | ( | const int | region[4], |
vtkCollection * | selectedRepresentations, | ||
vtkCollection * | selectionSources, | ||
bool | multiple_selections = false , |
||
int | modifier = 0 , |
||
bool | select_blocks = false , |
||
const char * | arrayName = nullptr |
||
) |
Makes a new selection source proxy.
bool vtkSMRenderViewProxy::SelectSurfacePoints | ( | const int | region[4], |
vtkCollection * | selectedRepresentations, | ||
vtkCollection * | selectionSources, | ||
bool | multiple_selections = false , |
||
int | modifier = 0 , |
||
bool | select_blocks = false , |
||
const char * | arrayName = nullptr |
||
) |
Makes a new selection source proxy.
bool vtkSMRenderViewProxy::SelectFrustumCells | ( | const int | region[4], |
vtkCollection * | selectedRepresentations, | ||
vtkCollection * | selectionSources, | ||
bool | multiple_selections = false |
||
) |
Makes a new selection source proxy.
bool vtkSMRenderViewProxy::SelectFrustumPoints | ( | const int | region[4], |
vtkCollection * | selectedRepresentations, | ||
vtkCollection * | selectionSources, | ||
bool | multiple_selections = false |
||
) |
Makes a new selection source proxy.
bool vtkSMRenderViewProxy::SelectPolygonPoints | ( | vtkIntArray * | polygon, |
vtkCollection * | selectedRepresentations, | ||
vtkCollection * | selectionSources, | ||
bool | multiple_selections = false , |
||
int | modifier = 0 , |
||
bool | selectBlocks = false |
||
) |
Makes a new selection source proxy.
bool vtkSMRenderViewProxy::SelectPolygonCells | ( | vtkIntArray * | polygon, |
vtkCollection * | selectedRepresentations, | ||
vtkCollection * | selectionSources, | ||
bool | multiple_selections = false , |
||
int | modifier = 0 , |
||
bool | selectBlocks = false |
||
) |
Makes a new selection source proxy.
bool vtkSMRenderViewProxy::ComputeVisibleScalarRange | ( | const int | region[4], |
int | fieldAssociation, | ||
const char * | scalarName, | ||
int | component, | ||
double | range[] | ||
) |
Returns the range for visible elements in the current view.
bool vtkSMRenderViewProxy::ComputeVisibleScalarRange | ( | int | fieldAssociation, |
const char * | scalarName, | ||
int | component, | ||
double | range[] | ||
) |
Returns the range for visible elements in the current view.
vtkSMRepresentationProxy* vtkSMRenderViewProxy::Pick | ( | int | x, |
int | y | ||
) |
Convenience method to pick a location.
Internally uses SelectSurfaceCells to locate the picked object. In future, we can make this faster.
vtkSMRepresentationProxy* vtkSMRenderViewProxy::PickBlock | ( | int | x, |
int | y, | ||
unsigned int & | flatIndex, | ||
int & | rank | ||
) |
Convenience method to pick a block in a multi-block data set.
Will return the selected representation. Furthermore, if it is a multi-block data set the flat index of the selected block will be returned in flatIndex.
With introduction of vtkPartitionedDataSet and vtkPartitionedDataSetCollection, flatIndex is no longer consistent across ranks and hence this method was changed to return the rank number as well.
bool vtkSMRenderViewProxy::ConvertDisplayToPointOnSurface | ( | const int | display_position[2], |
double | world_position[3], | ||
double | world_normal[3], | ||
bool | snapOnMeshPoint = false |
||
) |
Given a location is display coordinates (pixels), tries to compute and return the world location and normal on a surface, if possible.
Returns true if the conversion was successful, else assigns the focal point and plane normal and returns false. If Snap on mesh point is true, it will return a point and normal from the mesh only. If point or normal were not available, they will have a vector of std::numeric_limits<double>::quiet_NaN().
|
virtual |
Checks if color depth is sufficient to support selection.
If not, will return 0 and any calls to SelectVisibleCells will quietly return an empty selection.
void vtkSMRenderViewProxy::SynchronizeGeometryBounds | ( | ) |
Call SynchronizeGeometryBounds server side.
void vtkSMRenderViewProxy::ResetCamera | ( | bool | closest = false , |
double | offsetRatio = 0.9 |
||
) |
For backwards compatibility in Python scripts.
OffsetRatio can be used to add a zoom offset (only applicable when closest is true).
void vtkSMRenderViewProxy::ResetCamera | ( | double | bounds[6], |
bool | closest = false , |
||
double | offsetRatio = 0.9 |
||
) |
For backwards compatibility in Python scripts.
OffsetRatio can be used to add a zoom offset (only applicable when closest is true).
void vtkSMRenderViewProxy::ResetCamera | ( | double | xmin, |
double | xmax, | ||
double | ymin, | ||
double | ymax, | ||
double | zmin, | ||
double | zmax, | ||
bool | closest = false , |
||
double | offsetRatio = 0.9 |
||
) |
For backwards compatibility in Python scripts.
OffsetRatio can be used to add a zoom offset (only applicable when closest is true).
|
virtual |
Convenience method for zooming to a representation.
OffsetRatio can be used to add a zoom offset (only applicable when closest is true).
|
virtual |
Similar to IsSelectionAvailable(), however, on failure returns the error message otherwise 0.
|
virtual |
Similar to IsSelectionAvailable(), however, on failure returns the error message otherwise 0.
Reimplemented in vtkSMMultiSliceViewProxy.
|
overridevirtual |
A client process need to set the interactor to enable interactivity.
Use this method to set the interactor and initialize it as needed by the RenderView. This include changing the interactor style as well as overriding VTK rendering to use the Proxy/ViewProxy API instead.
Reimplemented from vtkSMViewProxy.
|
overridevirtual |
Returns the interactor.
Reimplemented from vtkSMViewProxy.
vtkRenderer* vtkSMRenderViewProxy::GetRenderer | ( | ) |
Returns the client-side renderer (composited or 3D).
|
overridevirtual |
Filter changes to the OSPRay rendering method, to transfer the pathtracing materials from client to server only when they are acutally needed.
Use this method instead of UpdateProperty
when changing the OSPRay back-end for the default materials to load properly.
Reimplemented from vtkSMProxy.
vtkCamera* vtkSMRenderViewProxy::GetActiveCamera | ( | ) |
Returns the client-side active camera object.
Helper methods to adjust its orientation and position.
void vtkSMRenderViewProxy::AdjustActiveCamera | ( | const CameraAdjustmentType & | , |
const double & | |||
) |
Returns the client-side active camera object.
Helper methods to adjust its orientation and position.
Returns the client-side active camera object.
Helper methods to adjust its orientation and position.
Returns the client-side active camera object.
Helper methods to adjust its orientation and position.
Returns the client-side active camera object.
Helper methods to adjust its orientation and position.
Returns the client-side active camera object.
Helper methods to adjust its orientation and position.
Returns the client-side active camera object.
Helper methods to adjust its orientation and position.
void vtkSMRenderViewProxy::ApplyIsometricView | ( | ) |
Returns the client-side active camera object.
Helper methods to adjust its orientation and position.
void vtkSMRenderViewProxy::ResetActiveCameraToDirection | ( | const double & | look_x, |
const double & | look_y, | ||
const double & | look_z, | ||
const double & | up_x, | ||
const double & | up_y, | ||
const double & | up_z | ||
) |
Returns the client-side active camera object.
Helper methods to adjust its orientation and position.
void vtkSMRenderViewProxy::ResetActiveCameraToPositiveX | ( | ) |
Returns the client-side active camera object.
Helper methods to adjust its orientation and position.
void vtkSMRenderViewProxy::ResetActiveCameraToNegativeX | ( | ) |
Returns the client-side active camera object.
Helper methods to adjust its orientation and position.
void vtkSMRenderViewProxy::ResetActiveCameraToPositiveY | ( | ) |
Returns the client-side active camera object.
Helper methods to adjust its orientation and position.
void vtkSMRenderViewProxy::ResetActiveCameraToNegativeY | ( | ) |
Returns the client-side active camera object.
Helper methods to adjust its orientation and position.
void vtkSMRenderViewProxy::ResetActiveCameraToPositiveZ | ( | ) |
Returns the client-side active camera object.
Helper methods to adjust its orientation and position.
void vtkSMRenderViewProxy::ResetActiveCameraToNegativeZ | ( | ) |
Returns the client-side active camera object.
Helper methods to adjust its orientation and position.
void vtkSMRenderViewProxy::SynchronizeCameraProperties | ( | ) |
This method calls UpdateInformation on the Camera Proxy and sets the Camera properties according to the info properties.
This approach is a bit lame. We need to ensure that camera properties are always/automatically synchronized. Camera properties cannot be treated same way as other properties.
|
virtual |
Returns true if the most recent render indeed employed low-res rendering.
|
overridevirtual |
Called vtkPVView::Update on the server-side.
Overridden to update the state of NeedsUpdateLOD flag.
Reimplemented from vtkSMViewProxy.
|
overridevirtual |
We override that method to handle LOD and non-LOD NeedsUpdate in transparent manner.
Reimplemented from vtkSMViewProxy.
bool vtkSMRenderViewProxy::StreamingUpdate | ( | bool | render_if_needed | ) |
Called to render a streaming pass.
Returns true if the view "streamed" some geometry.
|
overridevirtual |
Overridden to check through the various representations that this view can create.
Reimplemented from vtkSMViewProxy.
|
overridevirtual |
Returns the render window used by this view.
Reimplemented from vtkSMViewProxy.
vtkSMViewProxyInteractorHelper* vtkSMRenderViewProxy::GetInteractorHelper | ( | ) |
Provides access to the vtkSMViewProxyInteractorHelper object that handles the interaction/view sync.
We provide access to it for applications to monitor timer events etc.
vtkFloatArray* vtkSMRenderViewProxy::CaptureDepthBuffer | ( | ) |
Access to the Z buffer.
|
inlinevirtual |
Get the SelectionRepresentation proxy name.
Definition at line 248 of file vtkSMRenderViewProxy.h.
|
inlinevirtual |
Function to copy selection representation properties.
Definition at line 253 of file vtkSMRenderViewProxy.h.
void vtkSMRenderViewProxy::ComputeVisibleBounds | ( | vtkSMProxy * | representation, |
double * | bounds | ||
) |
Compute the bounds of the visible data on the given representation.
Delegated to the server side (vtkPVRenderView).
bool vtkSMRenderViewProxy::ClearSelectionCache | ( | bool | force = false | ) |
Tries to clear the selection cache (if needed).
Returns a boolean value which indicates whether the cache has been cleared.
|
overrideprotectedvirtual |
Overridden to call this->InteractiveRender() if "UseInteractiveRenderingForScreenshots" is true.
Reimplemented from vtkSMViewProxy.
|
protected |
Calls UpdateLOD() on the vtkPVRenderView.
|
overrideprotectedvirtual |
Overridden to ensure that we clean up the selection cache on the server side.
Reimplemented from vtkSMProxy.
|
protected |
|
protected |
|
overrideprotected |
|
overrideprotected |
|
protected |
Fetches the LastSelection from the data-server and then converts it to a selection source proxy and returns that.
|
overrideprotectedvirtual |
Called at the end of CreateVTKObjects().
Reimplemented from vtkSMProxy.
|
protected |
Returns true if the proxy is in interaction mode that corresponds to making a selection i.e.
vtkPVRenderView::INTERACTION_MODE_POLYGON or vtkPVRenderView::INTERACTION_MODE_SELECTION.
|
protected |
|
protected |
Definition at line 319 of file vtkSMRenderViewProxy.h.
|
protected |
Definition at line 323 of file vtkSMRenderViewProxy.h.
|
protected |
Definition at line 326 of file vtkSMRenderViewProxy.h.