Slicer
4.11
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
|
Abstract class that contains graphical display properties for displayable nodes. More...
#include <Libs/MRML/Core/vtkMRMLDisplayNode.h>
Public Types | |
enum | { MenuEvent = 16100 } |
enum | InterpolationType { FlatInterpolation = 0, GouraudInterpolation, PhongInterpolation } |
enum | RepresentationType { PointsRepresentation = 0, WireframeRepresentation, SurfaceRepresentation } |
enum | ScalarRangeFlagType { UseManualScalarRange = 0, UseDataScalarRange, UseColorNodeScalarRange, UseDataTypeScalarRange, UseDirectMapping, NUM_SCALAR_RANGE_FLAGS } |
typedef vtkMRMLNode | Superclass |
Public Types inherited from vtkMRMLNode | |
enum | { HierarchyModifiedEvent = 16000, IDChangedEvent = 16001, ReferenceAddedEvent, ReferenceModifiedEvent, ReferenceRemovedEvent, ReferencedNodeModifiedEvent } |
typedef vtkObject | Superclass |
Public Member Functions | |
void | AddViewNodeID (const char *viewNodeID) |
void | AutoScalarRangeOff () |
void | AutoScalarRangeOn () |
virtual void | ClippingOff () |
virtual void | ClippingOn () |
virtual void | EdgeVisibilityOff () |
virtual void | EdgeVisibilityOn () |
virtual void | FolderDisplayOverrideAllowedOff () |
virtual void | FolderDisplayOverrideAllowedOn () |
virtual int | GetActiveAttributeLocation () |
const char * | GetActiveAttributeLocationAsString () |
virtual vtkDataArray * | GetActiveScalarArray () |
virtual char * | GetActiveScalarName () |
virtual double | GetAmbient () |
int | GetAutoScalarRange () |
virtual const char * | GetClassName () |
virtual int | GetClipping () |
virtual void | GetColor (double [3]) |
virtual void | GetColor (double &, double &, double &) |
virtual double * | GetColor () |
virtual vtkMRMLColorNode * | GetColorNode () |
virtual char * | GetColorNodeID () |
virtual double | GetDiffuse () |
virtual vtkMRMLDisplayableNode * | GetDisplayableNode () |
virtual double * | GetEdgeColor () |
virtual void | GetEdgeColor (double &, double &, double &) |
virtual void | GetEdgeColor (double [3]) |
virtual int | GetEdgeVisibility () |
virtual bool | GetFolderDisplayOverrideAllowed () |
virtual int | GetInterpolateTexture () |
virtual int | GetInterpolation () |
virtual int | GetLighting () |
virtual double | GetLineWidth () |
const char * | GetNthViewNodeID (unsigned int index) |
int | GetNumberOfViewNodeIDs () const |
virtual double | GetOpacity () |
virtual double | GetPointSize () |
virtual double | GetPower () |
virtual int | GetRepresentation () |
virtual vtkDataSet * | GetScalarDataSet () |
virtual double * | GetScalarRange () |
virtual void | GetScalarRange (double &, double &) |
virtual void | GetScalarRange (double [2]) |
virtual int | GetScalarRangeFlag () |
const char * | GetScalarRangeFlagAsString () |
virtual int | GetScalarVisibility () |
virtual double | GetSelectedAmbient () |
virtual double * | GetSelectedColor () |
virtual void | GetSelectedColor (double &, double &, double &) |
virtual void | GetSelectedColor (double [3]) |
virtual double | GetSelectedSpecular () |
virtual int | GetShading () |
virtual double | GetSliceIntersectionOpacity () |
virtual int | GetSliceIntersectionThickness () |
int | GetSliceIntersectionVisibility () |
virtual double | GetSpecular () |
virtual int | GetTensorVisibility () |
virtual vtkAlgorithmOutput * | GetTextureImageDataConnection () |
virtual int | GetVectorVisibility () |
std::vector< std::string > | GetViewNodeIDs () const |
virtual int | GetVisibility () |
virtual bool | GetVisibility (const char *viewNodeID) |
virtual int | GetVisibility2D () |
virtual int | GetVisibility3D () |
virtual void | InterpolateTextureOff () |
virtual void | InterpolateTextureOn () |
virtual int | IsA (const char *type) |
bool | IsDisplayableInView (const char *viewNodeID) const |
bool | IsViewNodeIDPresent (const char *viewNodeID) const |
virtual void | LightingOff () |
virtual void | LightingOn () |
void | PrintSelf (ostream &os, vtkIndent indent) override |
void | ProcessMRMLEvents (vtkObject *caller, unsigned long event, void *callData) override |
void | ReadXMLAttributes (const char **atts) override |
void | RemoveAllViewNodeIDs () |
void | RemoveViewNodeID (char *viewNodeID) |
virtual void | ScalarVisibilityOff () |
virtual void | ScalarVisibilityOn () |
virtual void | SetActiveAttributeLocation (int) |
void | SetActiveAttributeLocationFromString (const char *str) |
virtual void | SetActiveScalar (const char *scalarName, int location) |
virtual void | SetActiveScalarName (const char *) |
virtual void | SetAmbient (double) |
virtual void | SetAndObserveColorNodeID (const char *ColorNodeID) |
void | SetAndObserveColorNodeID (const std::string &ColorNodeID) |
void | SetAutoScalarRange (int b) |
virtual void | SetClipping (int) |
virtual void | SetColor (double, double, double) |
virtual void | SetColor (double [3]) |
virtual void | SetDiffuse (double) |
void | SetDisplayableOnlyInView (const char *viewNodeID) |
virtual void | SetEdgeColor (double, double, double) |
virtual void | SetEdgeColor (double [3]) |
virtual void | SetEdgeVisibility (int) |
virtual void | SetFolderDisplayOverrideAllowed (bool) |
virtual void | SetInterpolateTexture (int) |
virtual void | SetInterpolation (int) |
virtual void | SetLighting (int) |
virtual void | SetLineWidth (double) |
virtual void | SetOpacity (double) |
virtual void | SetPointSize (double) |
virtual void | SetPower (double) |
virtual void | SetRepresentation (int) |
virtual void | SetScalarRange (double, double) |
void | SetScalarRange (double [2]) |
virtual void | SetScalarRangeFlag (int flag) |
void | SetScalarRangeFlagFromString (const char *str) |
virtual void | SetScalarVisibility (int) |
void | SetSceneReferences () override |
Mark the color and views nodes as references. More... | |
virtual void | SetSelectedAmbient (double) |
virtual void | SetSelectedColor (double, double, double) |
virtual void | SetSelectedColor (double [3]) |
virtual void | SetSelectedSpecular (double) |
virtual void | SetShading (int) |
virtual void | SetSliceIntersectionOpacity (double) |
virtual void | SetSliceIntersectionThickness (int) |
void | SetSliceIntersectionVisibility (int on) |
virtual void | SetSpecular (double) |
virtual void | SetTensorVisibility (int) |
virtual void | SetTextureImageDataConnection (vtkAlgorithmOutput *ImageDataConnection) |
virtual void | SetVectorVisibility (int) |
void | SetViewNodeIDs (const std::vector< std::string > &viewNodeIDs) |
virtual void | SetVisibility (int) |
virtual void | SetVisibility2D (int) |
virtual void | SetVisibility3D (int) |
void | SliceIntersectionVisibilityOff () |
void | SliceIntersectionVisibilityOn () |
virtual void | TensorVisibilityOff () |
virtual void | TensorVisibilityOn () |
virtual void | UpdateAssignedAttribute () |
void | UpdateReferenceID (const char *oldID, const char *newID) override |
Update the stored reference to another node in the scene. More... | |
void | UpdateReferences () override |
virtual void | UpdateScalarRange () |
void | UpdateScene (vtkMRMLScene *scene) override |
Finds the storage node and read the data. More... | |
virtual void | VectorVisibilityOff () |
virtual void | VectorVisibilityOn () |
virtual void | Visibility2DOff () |
virtual void | Visibility2DOn () |
virtual void | Visibility3DOff () |
virtual void | Visibility3DOn () |
virtual void | VisibilityOff () |
virtual void | VisibilityOn () |
vtkMRMLCopyContentMacro (vtkMRMLDisplayNode) | |
void | WriteXML (ostream &of, int indent) override |
virtual void | SetFrontfaceCulling (int) |
virtual int | GetFrontfaceCulling () |
virtual void | FrontfaceCullingOn () |
virtual void | FrontfaceCullingOff () |
virtual void | SetBackfaceCulling (int) |
virtual int | GetBackfaceCulling () |
virtual void | BackfaceCullingOn () |
virtual void | BackfaceCullingOff () |
Public Member Functions inherited from vtkMRMLNode | |
vtkMRMLNode * | AddAndObserveNodeReferenceID (const char *referenceRole, const char *referencedNodeID, vtkIntArray *events=nullptr) |
Add and observe a reference node from this node for a specific referenceRole. More... | |
vtkMRMLNode * | AddNodeReferenceID (const char *referenceRole, const char *referencedNodeID) |
Convenience method that adds a referencedNodeID at the end of the list. More... | |
void | AddNodeReferenceRole (const char *referenceRole, const char *mrmlAttributeName=nullptr, vtkIntArray *events=nullptr) |
Add a referenceRole. More... | |
virtual void | AddToSceneOff () |
virtual void | AddToSceneOn () |
virtual void | Copy (vtkMRMLNode *node) |
Copy node contents from another node of the same type. Does not copy node ID and Scene. Performs deep copy - an independent copy is created from all data, including bulk data. More... | |
virtual void | CopyContent (vtkMRMLNode *node, bool deepCopy=true) |
Copy node contents from another node of the same type. Does not copy node ID, Scene, Name, SingletonTag, HideFromEditors, AddToScene, UndoEnabled, and node references. If deepCopy is set to false then a shallow copy of bulk data (such as image or mesh data) could be made; copying may be faster but the node may share some data with the source node instead of creating an independent copy. More... | |
virtual void | CopyReferences (vtkMRMLNode *node) |
Copy the references of the node into this. More... | |
void | CopyWithScene (vtkMRMLNode *node) |
Copy everything (including Scene and ID) from another node of the same type. More... | |
virtual vtkMRMLNode * | CreateNodeInstance ()=0 |
Create instance of the default node. Like New only virtual. More... | |
void | DisableModifiedEventOff () |
void | DisableModifiedEventOn () |
virtual int | EndModify (int previousDisableModifiedEventState) |
End modifying the node. More... | |
virtual int | GetAddToScene () |
node added to MRML scene. More... | |
const char * | GetAttribute (const char *name) |
Get value of a name value pair attribute. More... | |
std::vector< std::string > | GetAttributeNames () |
Get all attribute names. More... | |
void | GetAttributeNames (vtkStringArray *attributeNames) |
Get all attribute names. Python-wrappable version. More... | |
virtual vtkIntArray * | GetContentModifiedEvents () |
virtual char * | GetDescription () |
virtual int | GetDisableModifiedEvent () |
Turn on/off generating InvokeEvent for set macros. More... | |
virtual int | GetHideFromEditors () |
Describes if the node is hidden. More... | |
virtual char * | GetID () |
ID use by other nodes to reference this node in XML. More... | |
virtual int | GetInMRMLCallbackFlag () |
Flags to avoid event loops. More... | |
virtual int | GetModifiedEventPending () |
virtual char * | GetName () |
vtkMRMLNode * | GetNodeReference (const char *referenceRole) |
const char * | GetNodeReferenceID (const char *referenceRole) |
Utility function that returns the first node id for a specific referenceRole. More... | |
void | GetNodeReferenceIDs (const char *referenceRole, std::vector< const char *> &referencedNodeIDs) |
Return a list of the referenced node IDs. More... | |
void | GetNodeReferenceRoles (std::vector< std::string > &roles) |
void | GetNodeReferences (const char *referenceRole, std::vector< vtkMRMLNode *> &nodes) |
Return a list of the referenced nodes. More... | |
virtual const char * | GetNodeTagName ()=0 |
vtkMRMLNode * | GetNthNodeReference (const char *referenceRole, int n) |
Get referenced MRML node for a specific referenceRole. More... | |
const char * | GetNthNodeReferenceID (const char *referenceRole, int n) |
Return the string of the Nth node ID for a specific reference role. More... | |
const char * | GetNthNodeReferenceRole (int n) |
int | GetNumberOfNodeReferenceRoles () |
int | GetNumberOfNodeReferences (const char *referenceRole) |
Return the number of node IDs for a specific reference role (and nodes as they always have the same size). More... | |
virtual int | GetSaveWithScene () |
Save node with MRML scene. More... | |
virtual vtkMRMLScene * | GetScene () |
Get the scene this node has been added to. More... | |
virtual int | GetSelectable () |
Describes if the node is selectable. More... | |
virtual int | GetSelected () |
Get/Set for Selected. More... | |
virtual char * | GetSingletonTag () |
virtual bool | GetUndoEnabled () |
virtual bool | HasCopyContent () const |
Returns true if the class supports deep and shallow copying node content. More... | |
bool | HasNodeReferenceID (const char *referenceRole, const char *referencedNodeID) |
Return true if referencedNodeID is in the node ID list for a specific referenceRole. More... | |
virtual void | HideFromEditorsOff () |
virtual void | HideFromEditorsOn () |
virtual void | InvokeCustomModifiedEvent (int eventId, void *callData=nullptr) |
This method allows the node to compress events. More... | |
virtual int | InvokePendingModifiedEvent () |
Invokes any modified events that are pending . More... | |
bool | IsSingleton () |
void | Modified () override |
Customized version of Modified() allowing to compress vtkCommand::ModifiedEvent. More... | |
virtual void | OnNodeAddedToScene () |
void | PrintSelf (ostream &os, vtkIndent indent) override |
virtual void | ProcessChildNode (vtkMRMLNode *) |
Set dependencies between this node and a child node when parsing XML file. More... | |
void | RemoveAttribute (const char *name) |
Remove attribute with the specified name. More... | |
void | RemoveNodeReferenceIDs (const char *referenceRole) |
Remove all node IDs and associated nodes for a specific referenceRole. More... | |
void | RemoveNthNodeReferenceID (const char *referenceRole, int n) |
Convenience method that removes the Nth node ID from the list. More... | |
virtual void | Reset (vtkMRMLNode *defaultNode) |
Reset node attributes to the initial state as defined in the constructor or the passed default node. More... | |
virtual void | SaveWithSceneOff () |
virtual void | SaveWithSceneOn () |
virtual void | SelectableOff () |
virtual void | SelectableOn () |
virtual void | SelectedOff () |
virtual void | SelectedOn () |
virtual void | SetAddToScene (int) |
void | SetAddToSceneNoModify (int value) |
vtkMRMLNode * | SetAndObserveNodeReferenceID (const char *referenceRole, const char *referencedNodeID, vtkIntArray *events=nullptr) |
Set and observe a reference node from this node for a specific referenceRole. More... | |
vtkMRMLNode * | SetAndObserveNthNodeReferenceID (const char *referenceRole, int n, const char *referencedNodeID, vtkIntArray *events=nullptr) |
Set and observe the Nth node ID for a specific reference role. More... | |
void | SetAttribute (const char *name, const char *value) |
Set a name value pair attribute. More... | |
virtual void | SetDescription (const char *) |
Text description of this node, to be set by the user. More... | |
void | SetDisableModifiedEvent (int onOff) |
virtual void | SetHideFromEditors (int) |
void | SetInMRMLCallbackFlag (int flag) |
virtual void | SetName (const char *) |
Name of this node, to be set by the user. More... | |
vtkMRMLNode * | SetNodeReferenceID (const char *referenceRole, const char *referencedNodeID) |
Set a reference to a node with specified nodeID from this node for a specific referenceRole. More... | |
vtkMRMLNode * | SetNthNodeReferenceID (const char *referenceRole, int n, const char *referencedNodeID) |
Set a N-th reference from this node with specified referencedNodeID for a specific referenceRole. More... | |
virtual void | SetSaveWithScene (int) |
virtual void | SetScene (vtkMRMLScene *scene) |
This method is for internal use only. Use AddNode method of vtkMRMLScene to add a node to the scene. More... | |
virtual void | SetSelectable (int) |
virtual void | SetSelected (int) |
void | SetSingletonOff () |
void | SetSingletonOn () |
virtual void | SetSingletonTag (const char *) |
Tag that make this node a singleton in the scene. More... | |
virtual void | SetUndoEnabled (bool) |
virtual int | StartModify () |
Start modifying the node. Disable Modify events. More... | |
virtual void | UndoEnabledOff () |
virtual void | UndoEnabledOn () |
const char * | URLDecodeString (const char *inString) |
Decode a URL string. More... | |
const char * | URLEncodeString (const char *inString) |
Encode a URL string. More... | |
virtual void | WriteNodeBodyXML (ostream &of, int indent) |
Write this node's body to a MRML file in XML format. More... | |
std::string | XMLAttributeDecodeString (const std::string &inString) |
Decode an XML attribute string. More... | |
std::string | XMLAttributeEncodeString (const std::string &inString) |
Encode an XML attribute string (replaces special characters by code sequences) More... | |
Static Public Member Functions | |
static const char * | GetAttributeLocationAsString (int id) |
Converts attribute location (point or cell data) to string. More... | |
static int | GetAttributeLocationFromString (const char *name) |
Gets attribute location (point or cell data) from string. More... | |
static const char * | GetScalarRangeFlagTypeAsString (int flag) |
static int | GetScalarRangeFlagTypeFromString (const char *name) |
Gets scalar range flag type from string. More... | |
static int | IsTypeOf (const char *type) |
static vtkMRMLDisplayNode * | SafeDownCast (vtkObject *o) |
Static Public Member Functions inherited from vtkMRMLNode | |
static int | IsTypeOf (const char *type) |
static vtkMRMLNode * | SafeDownCast (vtkObject *o) |
Protected Member Functions | |
void | operator= (const vtkMRMLDisplayNode &) |
virtual void | SetColorNodeInternal (vtkMRMLColorNode *newColorNode) |
vtkMRMLDisplayNode () | |
vtkMRMLDisplayNode (const vtkMRMLDisplayNode &) | |
~vtkMRMLDisplayNode () override | |
Protected Member Functions inherited from vtkMRMLNode | |
virtual const char * | GetMRMLAttributeNameFromReferenceRole (const char *refRole) |
Return the mrml attribute name (if found) associated with a reference role. Return 0 otherwise. More... | |
virtual const char * | GetReferenceRoleFromMRMLAttributeName (const char *attName) |
Return the reference role (if found) associated with the attribute name found in a MRML scene file. Return 0 otherwise. More... | |
virtual char * | GetTempURLString () |
void | GetUpdatedReferencedNodeEventList (int &oldReferencedNodeUseCount, int &newReferencedNodeUseCount, vtkIntArray *oldConsolidatedEventList, vtkIntArray *newConsolidatedEventList, vtkMRMLNode *oldReferencedNode, vtkMRMLNode *newReferencedNode, vtkMRMLNodeReference *referenceToIgnore, vtkIntArray *newEvents) |
virtual void | InvalidateNodeReferences () |
virtual bool | IsReferenceRoleGeneric (const char *refRole) |
Return true if the reference role is generic (ends with '/') or false otherwise. More... | |
virtual void | OnNodeReferenceAdded (vtkMRMLNodeReference *reference) |
virtual void | OnNodeReferenceModified (vtkMRMLNodeReference *reference) |
Called when a referenced node pointer is modified. More... | |
virtual void | OnNodeReferenceRemoved (vtkMRMLNodeReference *reference) |
Called when a referenced node pointer is removed (set to nullptr). More... | |
void | operator= (const vtkMRMLNode &) |
void | ParseReferencesAttribute (const char *attValue, std::set< std::string > &references) |
virtual void | SetTempURLString (const char *) |
Get/Set the string used to manage encoding/decoding of strings/URLs with special characters. More... | |
vtkMRMLNode * | UpdateNodeReferenceEventObserver (vtkMRMLNode *oldReferencedNode, vtkMRMLNode *newReferencedNode, vtkIntArray *newEvents, vtkMRMLNodeReference *referenceToIgnore) |
virtual void | UpdateNodeReferences (const char *referenceRole=nullptr) |
virtual void | UpdateNthNodeReference (const char *referenceRole, int n) |
vtkMRMLNode () | |
vtkMRMLNode (const vtkMRMLNode &) | |
~vtkMRMLNode () override | |
critical to have a virtual destructor! More... | |
Additional Inherited Members | |
Protected Types inherited from vtkMRMLNode | |
typedef std::map< std::string, std::string > | AttributesType |
typedef std::map< std::string, vtkSmartPointer< vtkIntArray > > | NodeReferenceEventsType |
typedef std::vector< vtkSmartPointer< vtkMRMLNodeReference > > | NodeReferenceListType |
typedef std::map< std::string, NodeReferenceListType > | NodeReferencesType |
Static Protected Member Functions inherited from vtkMRMLNode | |
static void | MRMLCallback (vtkObject *caller, unsigned long eid, void *clientData, void *callData) |
Abstract class that contains graphical display properties for displayable nodes.
vtkMRMLDisplayNode fires a ModifiedEvent event when the texture image data or the color node is modified.
Definition at line 38 of file vtkMRMLDisplayNode.h.
Definition at line 41 of file vtkMRMLDisplayNode.h.
anonymous enum |
Enumerator | |
---|---|
MenuEvent | display of context menu is requested (mapped to right-click by default), event data is vtkMRMLInteractionEventData |
Definition at line 82 of file vtkMRMLDisplayNode.h.
Interpolation models
Enumerator | |
---|---|
FlatInterpolation | |
GouraudInterpolation | |
PhongInterpolation |
Definition at line 54 of file vtkMRMLDisplayNode.h.
Representation models
Enumerator | |
---|---|
PointsRepresentation | |
WireframeRepresentation | |
SurfaceRepresentation |
Definition at line 46 of file vtkMRMLDisplayNode.h.
Scalar range options for displaying data associated with this display node, this setting determines if the display node, color node, or ? determine the mapping range between the data and the colors used to display it. Not all are currently supported. UseDataScalarRange - use the current min/max of the active data (former auto) UseColorNodeScalarRange - use the range from the associated color node UseDataTypeScalarRange - use the min/max of the numerical type of the UseDirectMapping - map scalar values directly to RGB values data, for example minimum integer to maximum integer UseManualScalarRange - use user defined values
Enumerator | |
---|---|
UseManualScalarRange | |
UseDataScalarRange | |
UseColorNodeScalarRange | |
UseDataTypeScalarRange | |
UseDirectMapping | |
NUM_SCALAR_RANGE_FLAGS |
Definition at line 72 of file vtkMRMLDisplayNode.h.
|
protected |
|
overrideprotected |
|
protected |
void vtkMRMLDisplayNode::AddViewNodeID | ( | const char * | viewNodeID | ) |
Add View Node ID for the view to display this node in.
void vtkMRMLDisplayNode::AutoScalarRangeOff | ( | ) |
void vtkMRMLDisplayNode::AutoScalarRangeOn | ( | ) |
Set the auto scalar range flag of the display node.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Set the clipping of the display node.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Set flag determining whether folders are allowed to override display properties.
|
virtual |
|
virtual |
|
virtual |
Get the active attribute location of the display node.
const char* vtkMRMLDisplayNode::GetActiveAttributeLocationAsString | ( | ) |
Get the active attribute location of the display node as string
|
inlinevirtual |
Return the current active scalar array (based on active scalar name and location) To be re-implemented in subclasses based on their contained data
Reimplemented in vtkMRMLMarkupsDisplayNode, and vtkMRMLModelDisplayNode.
Definition at line 519 of file vtkMRMLDisplayNode.h.
|
virtual |
Return the name of the currently active scalar field for this model.
|
virtual |
Get the ambient coef of the display node.
|
static |
Converts attribute location (point or cell data) to string.
|
static |
Gets attribute location (point or cell data) from string.
int vtkMRMLDisplayNode::GetAutoScalarRange | ( | ) |
Get the auto scalar range flag of the display node.
|
virtual |
|
virtual |
Reimplemented from vtkMRMLNode.
Reimplemented in vtkMRMLAnnotationDisplayNode, vtkMRMLSegmentationDisplayNode, vtkMRMLFolderDisplayNode, vtkMRMLMarkupsDisplayNode, vtkMRMLDiffusionTensorVolumeDisplayNode, vtkMRMLScalarVolumeDisplayNode, vtkMRMLTransformDisplayNode, vtkMRMLModelDisplayNode, vtkMRMLDiffusionWeightedVolumeDisplayNode, vtkMRMLGlyphableVolumeSliceDisplayNode, vtkMRMLVectorVolumeDisplayNode, vtkMRMLMarkupsFiducialDisplayNode, vtkMRMLVolumeRenderingDisplayNode, vtkMRMLDiffusionTensorVolumeSliceDisplayNode, vtkMRMLMarkupsROIDisplayNode, vtkMRMLMultiVolumeRenderingDisplayNode, vtkMRMLCPURayCastVolumeRenderingDisplayNode, vtkMRMLGPURayCastVolumeRenderingDisplayNode, vtkMRMLGlyphableVolumeDisplayNode, vtkMRMLVolumeDisplayNode, vtkMRMLLabelMapVolumeDisplayNode, vtkMRMLAnnotationLineDisplayNode, vtkMRMLAnnotationPointDisplayNode, and vtkMRMLAnnotationTextDisplayNode.
|
virtual |
Get the clipping of the display node.
|
virtual |
|
virtual |
Get the color of the display node.
|
virtual |
|
virtual |
Get associated color MRML node. Search the node into the scene if the node hasn't been cached yet. This can be a slow call.
|
virtual |
Get color node ID of the display node.
|
virtual |
Get the diffuse coef of the display node.
|
virtual |
Returns the first displayable node that is associated to this display node
|
virtual |
|
virtual |
Get the edge color of the display node.
|
virtual |
|
virtual |
Get the visibility of the edges.
|
virtual |
Get flag determining whether folders are allowed to override display properties.
|
virtual |
|
virtual |
Get the texture interpolation of the display node.
|
virtual |
Get the interpolation of the surface.
|
virtual |
Get the lighting of the display node.
|
virtual |
Get the widget of lines.
const char* vtkMRMLDisplayNode::GetNthViewNodeID | ( | unsigned int | index | ) |
Get View Node ID's for the view to display this node in. If nullptr, display in all views
|
inline |
Get number of View Node ID's for the view to display this node in. If 0, display in all views
Definition at line 822 of file vtkMRMLDisplayNode.h.
|
virtual |
Get the opacity coef of the display node.
|
virtual |
Get the diameter of points.
|
virtual |
Get the specular power coef of the display node.
|
virtual |
Get the representation of the surface.
|
inlinevirtual |
Get data set containing the scalar arrays for this node type. For example for models it is the input mesh, and for markups the curve poly data
Reimplemented in vtkMRMLMarkupsDisplayNode, and vtkMRMLModelDisplayNode.
Definition at line 516 of file vtkMRMLDisplayNode.h.
|
virtual |
Get the scalar range of the display node.
|
virtual |
|
virtual |
|
virtual |
Get the interpolation of the surface.
const char* vtkMRMLDisplayNode::GetScalarRangeFlagAsString | ( | ) |
Get scalar range flag as string
|
static |
Convert between scalar range flag type id and string
|
static |
Gets scalar range flag type from string.
|
virtual |
Get the scalar visibility of the display node.
|
virtual |
Get the selected ambient coef of the display node.
|
virtual |
Get the selected color of the display node.
|
virtual |
|
virtual |
|
virtual |
Get the selected specular coef of the display node.
|
virtual |
Get the shading of the display node.
|
virtual |
Get the slice intersection opacity coef of the display node.
|
virtual |
Get the slice intersection thickness of the display node. In voxels.
int vtkMRMLDisplayNode::GetSliceIntersectionVisibility | ( | ) |
Get the slice intersection visibility of the display node. Function to manage
|
virtual |
Get the specular coef of the display node.
|
virtual |
Get the tensor visibility of the display node.
|
virtual |
Get the texture image data port.
|
virtual |
Get the vector visibility of the display node.
|
inline |
Get all View Node ID's for the view to display this node in. If empty, display in all views
Definition at line 828 of file vtkMRMLDisplayNode.h.
|
virtual |
Get the visibility of the display node.
|
virtual |
Return true if the display node should be visible in the view node. To be visible in the view, the node needs to be visible (Visibility == 1) and the view ID must be in the ViewNodeIDs list or the list must be empty (visible in all views).
|
virtual |
Get the 2D visibility of the display node.
|
virtual |
Get the 3D visibility of the display node.
|
virtual |
|
virtual |
Set the texture interpolation of the display node.
|
virtual |
Reimplemented from vtkMRMLNode.
Reimplemented in vtkMRMLAnnotationDisplayNode, vtkMRMLSegmentationDisplayNode, vtkMRMLFolderDisplayNode, vtkMRMLMarkupsDisplayNode, vtkMRMLDiffusionTensorVolumeDisplayNode, vtkMRMLScalarVolumeDisplayNode, vtkMRMLTransformDisplayNode, vtkMRMLModelDisplayNode, vtkMRMLDiffusionWeightedVolumeDisplayNode, vtkMRMLGlyphableVolumeSliceDisplayNode, vtkMRMLVectorVolumeDisplayNode, vtkMRMLMarkupsFiducialDisplayNode, vtkMRMLVolumeRenderingDisplayNode, vtkMRMLDiffusionTensorVolumeSliceDisplayNode, vtkMRMLMarkupsROIDisplayNode, vtkMRMLMultiVolumeRenderingDisplayNode, vtkMRMLCPURayCastVolumeRenderingDisplayNode, vtkMRMLGPURayCastVolumeRenderingDisplayNode, vtkMRMLGlyphableVolumeDisplayNode, vtkMRMLVolumeDisplayNode, vtkMRMLLabelMapVolumeDisplayNode, vtkMRMLAnnotationLineDisplayNode, vtkMRMLAnnotationPointDisplayNode, and vtkMRMLAnnotationTextDisplayNode.
bool vtkMRMLDisplayNode::IsDisplayableInView | ( | const char * | viewNodeID | ) | const |
Returns true if the viewNodeID is present in the ViewNodeId list or there is no ViewNodeId in the list (meaning all the views display the node)
|
static |
bool vtkMRMLDisplayNode::IsViewNodeIDPresent | ( | const char * | viewNodeID | ) | const |
True if the view node id is present in the viewnodeid list false if not found
|
virtual |
|
virtual |
Enable/Disable the lighting of the display node.
|
protected |
|
override |
|
overridevirtual |
Propagate ModifiedEvent generated by the texture image data or the color node.
Reimplemented from vtkMRMLNode.
Reimplemented in vtkMRMLModelDisplayNode, vtkMRMLScalarVolumeDisplayNode, vtkMRMLAnnotationDisplayNode, vtkMRMLGlyphableVolumeDisplayNode, vtkMRMLVolumeDisplayNode, vtkMRMLVectorVolumeDisplayNode, vtkMRMLVolumeRenderingDisplayNode, vtkMRMLTransformDisplayNode, vtkMRMLFolderDisplayNode, vtkMRMLGlyphableVolumeSliceDisplayNode, vtkMRMLMarkupsDisplayNode, vtkMRMLAnnotationLineDisplayNode, vtkMRMLAnnotationPointDisplayNode, vtkMRMLAnnotationTextDisplayNode, and vtkMRMLLabelMapVolumeDisplayNode.
|
overridevirtual |
Read node attributes from XML file.
Reimplemented from vtkMRMLNode.
Reimplemented in vtkMRMLAnnotationDisplayNode, vtkMRMLSegmentationDisplayNode, vtkMRMLTransformDisplayNode, vtkMRMLFolderDisplayNode, vtkMRMLMarkupsDisplayNode, vtkMRMLModelDisplayNode, vtkMRMLScalarVolumeDisplayNode, vtkMRMLGlyphableVolumeSliceDisplayNode, vtkMRMLVectorVolumeDisplayNode, vtkMRMLCPURayCastVolumeRenderingDisplayNode, vtkMRMLGPURayCastVolumeRenderingDisplayNode, vtkMRMLMultiVolumeRenderingDisplayNode, vtkMRMLVolumeRenderingDisplayNode, vtkMRMLGlyphableVolumeDisplayNode, vtkMRMLVolumeDisplayNode, vtkMRMLAnnotationLineDisplayNode, vtkMRMLAnnotationPointDisplayNode, and vtkMRMLAnnotationTextDisplayNode.
void vtkMRMLDisplayNode::RemoveAllViewNodeIDs | ( | ) |
Remove All View Node IDs for the views to display this node in.
void vtkMRMLDisplayNode::RemoveViewNodeID | ( | char * | viewNodeID | ) |
Remove View Node ID for the view to display this node in. Note that if no view node IDs are specified then the displayable node will be shown in every views. Therefore, to hide a displayable node from a single view, it is not necessary to call RemoveViewNodeID (unless it had been explicitly added before) but all the other view node IDs must be added instead.
|
static |
|
virtual |
|
virtual |
Set the scalar visibility of the display node.
|
virtual |
Set the active attribute location of the display node. vtkAssignAttribute::POINT_DATA by default.
Reimplemented in vtkMRMLModelDisplayNode.
void vtkMRMLDisplayNode::SetActiveAttributeLocationFromString | ( | const char * | str | ) |
Set the active attribute location of the display node from string
|
virtual |
Sets active scalar name and attribute location in one step. It is preferable to use this method instead of calling SetActiveScalarName and SetActiveAttributeLocation separately, to avoid transient states when scalar name and location are temporarily inconsistent.
|
virtual |
Set the active scalar name of the display node.
Reimplemented in vtkMRMLModelDisplayNode.
|
virtual |
Set the ambient coef of the display node.
|
virtual |
Set and observe color node of the display node.
void vtkMRMLDisplayNode::SetAndObserveColorNodeID | ( | const std::string & | ColorNodeID | ) |
Set and observe color node of the display node. Utility method that conveniently takes a string instead of a char*
void vtkMRMLDisplayNode::SetAutoScalarRange | ( | int | b | ) |
Set the auto scalar range flag of the display node.
|
virtual |
|
virtual |
Set the clipping of the display node.
|
virtual |
Set the color of the display node.
|
virtual |
|
protectedvirtual |
Internal function to set the color node. Called by SetColorNodeID().
Reimplemented in vtkMRMLScalarVolumeDisplayNode.
|
virtual |
Set the diffuse coef of the display node.
void vtkMRMLDisplayNode::SetDisplayableOnlyInView | ( | const char * | viewNodeID | ) |
Set the View Node ID as the only view to display this node in. If the view node id does not exist, the node will show in all views. Uses a disable/enable modified event block to avoid flicker.
|
virtual |
Set the edge color of the display node.
|
virtual |
|
virtual |
Set the visibility of the edges.
|
virtual |
Set flag determining whether folders are allowed to override display properties.
|
virtual |
Enable/disable rendering of cells facing the camera (frontface) or facing away from the camera (backface). By culling (excluding from rendering) rendering performance of very complex models may be improved and it may also simplify appearance of semitransparent models. However, if cells are not oriented consistently then enabling culling may make a surface appear turned inside out or not just partially rendered. Disabled (all faces are rendered) by default.
|
virtual |
Set the texture interpolation of the display node.
|
virtual |
Set the interpolation of the surface.
|
virtual |
Enable/Disable lighting of the display node.
|
virtual |
Set the width of lines.
|
virtual |
Set the opacity coef of the display node.
|
virtual |
Set the diameter of points.
|
virtual |
Set the specular power coef of the display node.
|
virtual |
Set the representation of the surface.
void vtkMRMLDisplayNode::SetScalarRange | ( | double | [2] | ) |
|
virtual |
Set the scalar range of the display node.
|
virtual |
Set the scalar range to use with color mapping
void vtkMRMLDisplayNode::SetScalarRangeFlagFromString | ( | const char * | str | ) |
Set scalar range flag from string
|
virtual |
Set the scalar visibility of the display node.
|
overridevirtual |
Mark the color and views nodes as references.
Reimplemented from vtkMRMLNode.
Reimplemented in vtkMRMLGlyphableVolumeDisplayNode.
|
virtual |
Set the selected ambient coef of the display node.
|
virtual |
Set the selected color of the display node.
|
virtual |
|
virtual |
Set the selected specular coef of the display node.
|
virtual |
Set the shading mode (None, Gouraud, Flat) of the display node.
|
virtual |
Set the slice intersection opacity coef of the display node.
|
virtual |
Set the slice intersection thickness of the display node. In voxels.
void vtkMRMLDisplayNode::SetSliceIntersectionVisibility | ( | int | on | ) |
Set the slice intersection visibility of the display node. Function to manage
|
virtual |
Set the specular coef of the display node.
|
virtual |
Set the tensor visibility of the display node.
|
virtual |
Set and observe the texture image data port.
|
virtual |
Set the vector visibility of the display node.
void vtkMRMLDisplayNode::SetViewNodeIDs | ( | const std::vector< std::string > & | viewNodeIDs | ) |
Set all the view node IDs at once. Only trigger Modified() if the new vector is different from the existing vector.
|
virtual |
Set the visibility of the display node.
|
virtual |
Set the 2D visibility of the display node.
|
virtual |
Set the 3D visibility of the display node.
void vtkMRMLDisplayNode::SliceIntersectionVisibilityOff | ( | ) |
Set the slice intersection visibility of the display node. Function to manage
void vtkMRMLDisplayNode::SliceIntersectionVisibilityOn | ( | ) |
Set the slice intersection visibility of the display node. Function to manage
|
virtual |
|
virtual |
Set the tensor visibility of the display node.
|
inlinevirtual |
Update the AssignAttribute filter based on its ActiveScalarName and its ActiveAttributeLocation To be re-implemented in subclasses if scalar display is supported, to change active scalar and modify display pipeline if needed.
Reimplemented in vtkMRMLMarkupsDisplayNode, vtkMRMLModelDisplayNode, vtkMRMLGlyphableVolumeSliceDisplayNode, and vtkMRMLDiffusionTensorVolumeSliceDisplayNode.
Definition at line 416 of file vtkMRMLDisplayNode.h.
|
overridevirtual |
Update the stored reference to another node in the scene.
Reimplemented from vtkMRMLNode.
Reimplemented in vtkMRMLGlyphableVolumeSliceDisplayNode, and vtkMRMLGlyphableVolumeDisplayNode.
|
overridevirtual |
Updates this node if it depends on other nodes when the node is deleted in the scene.
Reimplemented from vtkMRMLNode.
Reimplemented in vtkMRMLGlyphableVolumeDisplayNode, vtkMRMLGlyphableVolumeSliceDisplayNode, and vtkMRMLVolumeDisplayNode.
|
virtual |
Update the ScalarRange based on the
|
overridevirtual |
Finds the storage node and read the data.
Reimplemented from vtkMRMLNode.
Reimplemented in vtkMRMLAnnotationDisplayNode, vtkMRMLGlyphableVolumeDisplayNode, vtkMRMLGlyphableVolumeSliceDisplayNode, vtkMRMLMarkupsDisplayNode, vtkMRMLVolumeDisplayNode, vtkMRMLAnnotationLineDisplayNode, vtkMRMLAnnotationPointDisplayNode, and vtkMRMLAnnotationTextDisplayNode.
|
virtual |
|
virtual |
Set the vector visibility of the display node.
|
virtual |
|
virtual |
Set the 2D visibility of the display node.
|
virtual |
|
virtual |
Set the 3D visibility of the display node.
|
virtual |
|
virtual |
Set the visibility of the display node.
vtkMRMLDisplayNode::vtkMRMLCopyContentMacro | ( | vtkMRMLDisplayNode | ) |
Copy node content (excludes basic data, such as name and node references).
|
overridevirtual |
Write this node's information to a MRML file in XML format.
Reimplemented from vtkMRMLNode.
Reimplemented in vtkMRMLAnnotationDisplayNode, vtkMRMLSegmentationDisplayNode, vtkMRMLTransformDisplayNode, vtkMRMLFolderDisplayNode, vtkMRMLMarkupsDisplayNode, vtkMRMLModelDisplayNode, vtkMRMLScalarVolumeDisplayNode, vtkMRMLGlyphableVolumeSliceDisplayNode, vtkMRMLVectorVolumeDisplayNode, vtkMRMLCPURayCastVolumeRenderingDisplayNode, vtkMRMLGPURayCastVolumeRenderingDisplayNode, vtkMRMLGlyphableVolumeDisplayNode, vtkMRMLMultiVolumeRenderingDisplayNode, vtkMRMLVolumeRenderingDisplayNode, vtkMRMLVolumeDisplayNode, vtkMRMLAnnotationLineDisplayNode, vtkMRMLAnnotationPointDisplayNode, and vtkMRMLAnnotationTextDisplayNode.
|
protected |
This property controls on which attribute the ActiveScalarName applies. Typically vtkAssignAttribute::POINT_DATA or vtkAssignAttribute::CELL_DATA. Default to vtkAssignAttribute::POINT_DATA
Definition at line 617 of file vtkMRMLDisplayNode.h.
|
protected |
Active vtkDataSetAttributes::Scalars field name for the ActiveAttributeLocation array. This is typically used to specify what field array is the color array that needs to be used by the VTK mappers. No active scalar name by default other than the default polydata.
Definition at line 611 of file vtkMRMLDisplayNode.h.
|
protected |
Ambient of the surface expressed as a number from 0 to 1. 0. by default.
Definition at line 633 of file vtkMRMLDisplayNode.h.
|
protected |
Indicates whether to cull (not render) the backface of the surface. 1 by default.
Definition at line 739 of file vtkMRMLDisplayNode.h.
|
protected |
Specifies whether to clip the surface with the slice planes. 0 by default.
Definition at line 720 of file vtkMRMLDisplayNode.h.
|
protected |
Model's color in the format [r,g,b]. Gray (0.5, 0.5, 0.5) by default.
Definition at line 779 of file vtkMRMLDisplayNode.h.
|
protected |
Cached instance of the color node ID found in the scene. The node is observed and when modified, vtkMRMLDisplayNode fires a ModifiedEvent too.
Definition at line 602 of file vtkMRMLDisplayNode.h.
|
protected |
String ID of the color MRML node. The color node LUT or Color transfer function is set to the VTK mappers. Note that anytime the color node is modified, the observing display node fires a Modified event. No color node by default.
Definition at line 597 of file vtkMRMLDisplayNode.h.
|
protected |
Diffuse of the surface expressed as a number from 0 to 1.
Definition at line 638 of file vtkMRMLDisplayNode.h.
|
protected |
The property controls the color of primitive edges (if edge visibility is enabled). Black (0,0,0) by default.
Definition at line 785 of file vtkMRMLDisplayNode.h.
|
protected |
This property controls the visibility of edges. On some renderers it is possible to render the edges of geometric primitives separately from the interior. 0 by default.
Definition at line 715 of file vtkMRMLDisplayNode.h.
|
protected |
Flag to determine whether folders are allowed to override display properties. On by default.
Definition at line 813 of file vtkMRMLDisplayNode.h.
|
protected |
Indicates whether to cull (not render) the frontface of the surface. 0 by default.
Definition at line 733 of file vtkMRMLDisplayNode.h.
|
protected |
Indicates whether to use interpolate texture. Don't interpolate (0) by default.
Definition at line 766 of file vtkMRMLDisplayNode.h.
|
protected |
Set the shading interpolation method for an object. Note that to use an interpolation other than FlatInterpolation, normals must be associated to the polydata (Gouraud and Phong are usually the same). GouraudInterpolation by default.
Definition at line 688 of file vtkMRMLDisplayNode.h.
|
protected |
Cached value of last found displayable node (it is expensive to determine it)
Definition at line 816 of file vtkMRMLDisplayNode.h.
|
protected |
This property controls the lighting. 1 by default.
Definition at line 679 of file vtkMRMLDisplayNode.h.
|
protected |
Width of a line. The width is expressed in screen units. The default is 1.0.
Definition at line 668 of file vtkMRMLDisplayNode.h.
|
protected |
Opacity of the surface expressed as a number from 0 to 1. Opaque (1.) by default.
Definition at line 623 of file vtkMRMLDisplayNode.h.
|
protected |
Diameter of a point. The size is expressed in screen units. The default is 1.0.
Definition at line 663 of file vtkMRMLDisplayNode.h.
|
protected |
Power of the surface specularity expressed as a number from 0 to 100.
Definition at line 648 of file vtkMRMLDisplayNode.h.
|
protected |
Control the surface geometry representation for the object. SurfaceRepresentation by default.
Definition at line 673 of file vtkMRMLDisplayNode.h.
|
protected |
Range of scalar values to render rather than the single color designated by colorName. [0, 100] by default.
Definition at line 773 of file vtkMRMLDisplayNode.h.
|
protected |
A flag to determine which scalar range will be used when mapping scalars to colors. UseColorNodeScalarRange by default.
Definition at line 808 of file vtkMRMLDisplayNode.h.
|
protected |
Indicates whether to render the scalar value associated with each polygon vertex. Hidden (0) by default.
Definition at line 746 of file vtkMRMLDisplayNode.h.
|
protected |
Node's selected ambient. 0.4 by default.
Definition at line 653 of file vtkMRMLDisplayNode.h.
|
protected |
Node's selected ambient color (r,g,b). Red (1., 0., 0.) by default.
Definition at line 790 of file vtkMRMLDisplayNode.h.
|
protected |
Node's selected specular. 0.5 by default.
Definition at line 658 of file vtkMRMLDisplayNode.h.
|
protected |
This property controls whether the shading is enabled/disabled. 1 by default.
Definition at line 694 of file vtkMRMLDisplayNode.h.
|
protected |
Opacity of the slice intersections expressed as a number from 0 to 1. Opaque (1.) by default.
Definition at line 628 of file vtkMRMLDisplayNode.h.
|
protected |
Specifies how thick to show the intersections with slice planes if slice intersection visibility is on 1 voxel by default.
Definition at line 727 of file vtkMRMLDisplayNode.h.
|
protected |
Specular of the surface expressed as a number from 0 to 1. 0. by default.
Definition at line 643 of file vtkMRMLDisplayNode.h.
|
protected |
Indicates whether to render the tensor value associated with each polygon vertex. Hidden (0) by default.
Definition at line 760 of file vtkMRMLDisplayNode.h.
|
protected |
Associated ImageDataConnection to apply as texture. The image data port is observed and when modified, vtkMRMLDisplayNode fires a ModifiedEvent too. No texture (nullptr) by default.
Definition at line 588 of file vtkMRMLDisplayNode.h.
|
protected |
Indicates whether to render the vector value associated with each polygon vertex. Hidden (0) by default.
Definition at line 753 of file vtkMRMLDisplayNode.h.
|
protected |
List of view node ID's for which the display node should be visible into. If the list is empty, it means the display node should be visible in all the view nodes. The displayable managers are responsible for reading this property. Visible in all views (empty) by default.
Definition at line 801 of file vtkMRMLDisplayNode.h.
|
protected |
Indicates if the surface is visible. True by default.
Definition at line 700 of file vtkMRMLDisplayNode.h.
|
protected |
Indicates whether the object is visible in the slice views. True by default. In order to show 2D, both this and
Definition at line 704 of file vtkMRMLDisplayNode.h.
|
protected |
Indicates whether the object is visible in the 3D views. True by default. In order to show 3D, both this and
Definition at line 708 of file vtkMRMLDisplayNode.h.