Slicer
4.10
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 | 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 | BackfaceCullingOff () |
virtual void | BackfaceCullingOn () |
virtual void | ClippingOff () |
virtual void | ClippingOn () |
virtual void | Copy (vtkMRMLNode *node) VTK_OVERRIDE |
Copy the node's attributes to this object. More... | |
virtual void | EdgeVisibilityOff () |
virtual void | EdgeVisibilityOn () |
virtual void | FrontfaceCullingOff () |
virtual void | FrontfaceCullingOn () |
virtual int | GetActiveAttributeLocation () |
virtual char * | GetActiveScalarName () |
virtual double | GetAmbient () |
int | GetAutoScalarRange () |
virtual int | GetBackfaceCulling () |
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 int | GetFrontfaceCulling () |
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 double * | GetScalarRange () |
virtual void | GetScalarRange (double [2]) |
virtual void | GetScalarRange (double &, double &) |
virtual int | GetScalarRangeFlag () |
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 () |
virtual 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 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) VTK_OVERRIDE |
virtual void | ProcessMRMLEvents (vtkObject *caller, unsigned long event, void *callData) VTK_OVERRIDE |
virtual void | ReadXMLAttributes (const char **atts) VTK_OVERRIDE |
void | RemoveAllViewNodeIDs () |
void | RemoveViewNodeID (char *viewNodeID) |
virtual void | ScalarVisibilityOff () |
virtual void | ScalarVisibilityOn () |
virtual void | SetActiveAttributeLocation (int) |
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 | SetBackfaceCulling (int) |
virtual void | SetClipping (int) |
virtual void | SetColor (double [3]) |
virtual void | SetColor (double, double, double) |
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 | SetFrontfaceCulling (int) |
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) |
virtual void | SetScalarVisibility (int) |
virtual void | SetSceneReferences () VTK_OVERRIDE |
Mark the color and views nodes as references. More... | |
virtual void | SetSelectedAmbient (double) |
virtual void | SetSelectedColor (double [3]) |
virtual void | SetSelectedColor (double, double, double) |
virtual void | SetSelectedSpecular (double) |
virtual void | SetShading (int) |
virtual void | SetSliceIntersectionOpacity (double) |
virtual void | SetSliceIntersectionThickness (int) |
virtual void | SetSliceIntersectionVisibility (int) |
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 | SliceIntersectionVisibilityOff () |
virtual void | SliceIntersectionVisibilityOn () |
virtual void | TensorVisibilityOff () |
virtual void | TensorVisibilityOn () |
virtual void | UpdateReferenceID (const char *oldID, const char *newID) VTK_OVERRIDE |
Update the stored reference to another node in the scene. More... | |
virtual void | UpdateReferences () VTK_OVERRIDE |
virtual void | UpdateScene (vtkMRMLScene *scene) VTK_OVERRIDE |
Finds the storage node and read the data. More... | |
virtual void | VectorVisibilityOff () |
virtual void | VectorVisibilityOn () |
virtual void | VisibilityOff () |
virtual void | VisibilityOn () |
virtual void | WriteXML (ostream &of, int indent) VTK_OVERRIDE |
Public Member Functions inherited from vtkMRMLNode | |
vtkMRMLNode * | AddAndObserveNodeReferenceID (const char *referenceRole, const char *referencedNodeID, vtkIntArray *events=0) |
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=0, vtkIntArray *events=0) |
Add a referenceRole. More... | |
virtual void | AddToSceneOff () |
virtual void | AddToSceneOn () |
virtual void | CopyReferences (vtkMRMLNode *node) |
Copy the references of the node into this. More... | |
void | CopyWithoutModifiedEvent (vtkMRMLNode *node) |
void | CopyWithScene (vtkMRMLNode *node) |
Copy everything (including Scene and ID) from another node of the same type. More... | |
void | CopyWithSceneWithSingleModifiedEvent (vtkMRMLNode *node) |
Copy everything (including Scene and ID) from another node of the same type. More... | |
void | CopyWithSingleModifiedEvent (vtkMRMLNode *node) |
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 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 () |
Only the scene can set itself to the node. More... | |
virtual int | GetSelectable () |
Describes if the node is selectable. More... | |
virtual int | GetSelected () |
Get/Set for Selected. More... | |
virtual char * | GetSingletonTag () |
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=NULL) |
This method allows the node to compress events. More... | |
virtual int | InvokePendingModifiedEvent () |
Invokes any modified events that are pending . More... | |
bool | IsSingleton () |
virtual void | Modified () VTK_OVERRIDE |
Customized version of Modified() allowing to compress vtkCommand::ModifiedEvent. More... | |
virtual void | OnNodeAddedToScene () |
void | PrintSelf (ostream &os, vtkIndent indent) VTK_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=0) |
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=0) |
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) |
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 int | StartModify () |
Start modifying the node. Disable Modify events. More... | |
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 () | |
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 NULL). More... | |
void | operator= (const vtkMRMLNode &) |
void | ParseReferencesAttribute (const char *attValue, std::map< std::string, 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=NULL) |
virtual void | UpdateNthNodeReference (const char *referenceRole, int n) |
vtkMRMLNode () | |
vtkMRMLNode (const vtkMRMLNode &) | |
virtual | ~vtkMRMLNode () |
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 37 of file vtkMRMLDisplayNode.h.
Definition at line 40 of file vtkMRMLDisplayNode.h.
Interpolation models
Enumerator | |
---|---|
FlatInterpolation | |
GouraudInterpolation | |
PhongInterpolation |
Definition at line 53 of file vtkMRMLDisplayNode.h.
Representation models
Enumerator | |
---|---|
PointsRepresentation | |
WireframeRepresentation | |
SurfaceRepresentation |
Definition at line 45 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 71 of file vtkMRMLDisplayNode.h.
|
protected |
|
protected |
|
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 |
Set the backface culling of the display node.
|
virtual |
|
virtual |
Set the clipping of the display node.
|
virtual |
Copy the node's attributes to this object.
Reimplemented from vtkMRMLNode.
Reimplemented in vtkMRMLAnnotationDisplayNode, vtkMRMLSegmentationDisplayNode, vtkMRMLTransformDisplayNode, vtkMRMLModelDisplayNode, vtkMRMLScalarVolumeDisplayNode, vtkMRMLDiffusionTensorVolumeDisplayNode, vtkMRMLGlyphableVolumeSliceDisplayNode, vtkMRMLDiffusionTensorVolumeSliceDisplayNode, vtkMRMLDiffusionWeightedVolumeDisplayNode, vtkMRMLVectorVolumeDisplayNode, vtkMRMLMarkupsDisplayNode, vtkMRMLCPURayCastVolumeRenderingDisplayNode, vtkMRMLGPURayCastVolumeRenderingDisplayNode, vtkMRMLGlyphableVolumeDisplayNode, vtkMRMLMultiVolumeRenderingDisplayNode, vtkMRMLVolumeDisplayNode, vtkMRMLVolumeRenderingDisplayNode, vtkMRMLAnnotationLineDisplayNode, vtkMRMLAnnotationPointDisplayNode, and vtkMRMLAnnotationTextDisplayNode.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Set the backface culling of the display node.
|
virtual |
Get the active attribute location of the display node.
|
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 |
Get the backface culling of the display node.
|
virtual |
Reimplemented from vtkMRMLNode.
Reimplemented in vtkMRMLSegmentationDisplayNode, vtkMRMLAnnotationDisplayNode, vtkMRMLScalarVolumeDisplayNode, vtkMRMLDiffusionTensorVolumeDisplayNode, vtkMRMLTransformDisplayNode, vtkMRMLModelDisplayNode, vtkMRMLDiffusionWeightedVolumeDisplayNode, vtkMRMLGlyphableVolumeSliceDisplayNode, vtkMRMLVectorVolumeDisplayNode, vtkMRMLVolumeRenderingDisplayNode, vtkMRMLDiffusionTensorVolumeSliceDisplayNode, vtkMRMLMarkupsDisplayNode, vtkMRMLMultiVolumeRenderingDisplayNode, vtkMRMLCPURayCastVolumeRenderingDisplayNode, vtkMRMLGPURayCastVolumeRenderingDisplayNode, vtkMRMLGlyphableVolumeDisplayNode, vtkMRMLVolumeDisplayNode, vtkMRMLLabelMapVolumeDisplayNode, vtkMRMLAnnotationLineDisplayNode, vtkMRMLAnnotationPointDisplayNode, and vtkMRMLAnnotationTextDisplayNode.
|
virtual |
Get the clipping of the display node.
|
virtual |
Get the color of the display node.
|
virtual |
|
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 |
Get the edge color of the display node.
|
virtual |
|
virtual |
|
virtual |
Get the visibility of the edges.
|
virtual |
Get the backface culling of the display node.
|
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 NULL, 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 730 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.
|
virtual |
Get the scalar range of the display node.
|
virtual |
|
virtual |
|
virtual |
Get the interpolation of the surface.
|
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.
|
virtual |
Get the slice intersection visibility of the display node.
|
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 736 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 |
|
virtual |
Set the texture interpolation of the display node.
|
virtual |
Reimplemented from vtkMRMLNode.
Reimplemented in vtkMRMLSegmentationDisplayNode, vtkMRMLAnnotationDisplayNode, vtkMRMLScalarVolumeDisplayNode, vtkMRMLDiffusionTensorVolumeDisplayNode, vtkMRMLTransformDisplayNode, vtkMRMLModelDisplayNode, vtkMRMLDiffusionWeightedVolumeDisplayNode, vtkMRMLGlyphableVolumeSliceDisplayNode, vtkMRMLVectorVolumeDisplayNode, vtkMRMLVolumeRenderingDisplayNode, vtkMRMLDiffusionTensorVolumeSliceDisplayNode, vtkMRMLMarkupsDisplayNode, 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 |
void vtkMRMLDisplayNode::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) |
|
virtual |
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, vtkMRMLDiffusionTensorVolumeDisplayNode, vtkMRMLGlyphableVolumeSliceDisplayNode, vtkMRMLDiffusionTensorVolumeSliceDisplayNode, vtkMRMLMarkupsDisplayNode, vtkMRMLAnnotationLineDisplayNode, vtkMRMLAnnotationPointDisplayNode, vtkMRMLAnnotationTextDisplayNode, and vtkMRMLLabelMapVolumeDisplayNode.
|
virtual |
Read node attributes from XML file.
Reimplemented from vtkMRMLNode.
Reimplemented in vtkMRMLAnnotationDisplayNode, vtkMRMLSegmentationDisplayNode, vtkMRMLTransformDisplayNode, vtkMRMLModelDisplayNode, vtkMRMLScalarVolumeDisplayNode, vtkMRMLDiffusionTensorVolumeDisplayNode, vtkMRMLGlyphableVolumeSliceDisplayNode, vtkMRMLDiffusionTensorVolumeSliceDisplayNode, vtkMRMLDiffusionWeightedVolumeDisplayNode, vtkMRMLVectorVolumeDisplayNode, vtkMRMLMarkupsDisplayNode, vtkMRMLCPURayCastVolumeRenderingDisplayNode, vtkMRMLGPURayCastVolumeRenderingDisplayNode, vtkMRMLMultiVolumeRenderingDisplayNode, vtkMRMLGlyphableVolumeDisplayNode, vtkMRMLVolumeRenderingDisplayNode, 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.
|
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.
|
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 |
Set the backface culling of the display node.
|
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 the backface culling of the display node.
|
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
Reimplemented in vtkMRMLModelDisplayNode.
|
virtual |
Set the scalar visibility of the display node.
|
virtual |
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 |
|
virtual |
Set the selected color of the display node.
|
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.
|
virtual |
Set the slice intersection visibility of the display node.
|
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 |
|
virtual |
Set the slice intersection visibility of the display node.
|
virtual |
|
virtual |
Set the tensor visibility of the display node.
|
virtual |
Update the stored reference to another node in the scene.
Reimplemented from vtkMRMLNode.
Reimplemented in vtkMRMLDiffusionTensorVolumeDisplayNode, vtkMRMLDiffusionTensorVolumeSliceDisplayNode, vtkMRMLGlyphableVolumeSliceDisplayNode, and vtkMRMLGlyphableVolumeDisplayNode.
|
virtual |
Updates this node if it depends on other nodes when the node is deleted in the scene.
Reimplemented from vtkMRMLNode.
Reimplemented in vtkMRMLGlyphableVolumeDisplayNode, vtkMRMLDiffusionTensorVolumeDisplayNode, vtkMRMLGlyphableVolumeSliceDisplayNode, vtkMRMLDiffusionTensorVolumeSliceDisplayNode, and vtkMRMLVolumeDisplayNode.
|
virtual |
Finds the storage node and read the data.
Reimplemented from vtkMRMLNode.
Reimplemented in vtkMRMLAnnotationDisplayNode, vtkMRMLGlyphableVolumeDisplayNode, vtkMRMLGlyphableVolumeSliceDisplayNode, vtkMRMLDiffusionTensorVolumeDisplayNode, vtkMRMLDiffusionTensorVolumeSliceDisplayNode, vtkMRMLVolumeDisplayNode, vtkMRMLMarkupsDisplayNode, vtkMRMLAnnotationLineDisplayNode, vtkMRMLAnnotationPointDisplayNode, and vtkMRMLAnnotationTextDisplayNode.
|
virtual |
|
virtual |
Set the vector visibility of the display node.
|
virtual |
|
virtual |
Set the visibility of the display node.
|
virtual |
Write this node's information to a MRML file in XML format.
Reimplemented from vtkMRMLNode.
Reimplemented in vtkMRMLAnnotationDisplayNode, vtkMRMLSegmentationDisplayNode, vtkMRMLTransformDisplayNode, vtkMRMLModelDisplayNode, vtkMRMLScalarVolumeDisplayNode, vtkMRMLDiffusionTensorVolumeDisplayNode, vtkMRMLGlyphableVolumeSliceDisplayNode, vtkMRMLDiffusionTensorVolumeSliceDisplayNode, vtkMRMLDiffusionWeightedVolumeDisplayNode, vtkMRMLVectorVolumeDisplayNode, vtkMRMLMarkupsDisplayNode, 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 531 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 525 of file vtkMRMLDisplayNode.h.
|
protected |
Ambient of the surface expressed as a number from 0 to 1. 0. by default.
Definition at line 547 of file vtkMRMLDisplayNode.h.
|
protected |
Indicates whether to cull (not render) the backface of the surface. 1 by default.
Definition at line 652 of file vtkMRMLDisplayNode.h.
|
protected |
Specifies whether to clip the surface with the slice planes. 0 by default.
Definition at line 626 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 692 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 516 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 511 of file vtkMRMLDisplayNode.h.
|
protected |
Diffuse of the surface expressed as a number from 0 to 1.
Definition at line 552 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 698 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 621 of file vtkMRMLDisplayNode.h.
|
protected |
Indicates whether to cull (not render) the frontface of the surface. 0 by default.
Definition at line 646 of file vtkMRMLDisplayNode.h.
|
protected |
Indicates whether to use interpolate texture. Don't interpolate (0) by default.
Definition at line 679 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 602 of file vtkMRMLDisplayNode.h.
|
protected |
Cached value of last found displayable node (it is expensive to determine it)
Definition at line 724 of file vtkMRMLDisplayNode.h.
|
protected |
This property controls the lighting. 1 by default.
Definition at line 593 of file vtkMRMLDisplayNode.h.
|
protected |
Width of a line. The width is expressed in screen units. The default is 1.0.
Definition at line 582 of file vtkMRMLDisplayNode.h.
|
protected |
Opacity of the surface expressed as a number from 0 to 1. Opaque (1.) by default.
Definition at line 537 of file vtkMRMLDisplayNode.h.
|
protected |
Diameter of a point. The size is expressed in screen units. The default is 1.0.
Definition at line 577 of file vtkMRMLDisplayNode.h.
|
protected |
Power of the surface specularity expressed as a number from 0 to 100.
Definition at line 562 of file vtkMRMLDisplayNode.h.
|
protected |
Control the surface geometry representation for the object. SurfaceRepresentation by default.
Definition at line 587 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 686 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 721 of file vtkMRMLDisplayNode.h.
|
protected |
Indicates whether to render the scalar value associated with each polygon vertex. Hidden (0) by default.
Definition at line 659 of file vtkMRMLDisplayNode.h.
|
protected |
Node's selected ambient. 0.4 by default.
Definition at line 567 of file vtkMRMLDisplayNode.h.
|
protected |
Node's selected ambient color (r,g,b). Red (1., 0., 0.) by default.
Definition at line 703 of file vtkMRMLDisplayNode.h.
|
protected |
Node's selected specular. 0.5 by default.
Definition at line 572 of file vtkMRMLDisplayNode.h.
|
protected |
This property controls whether the shading is enabled/disabled. 1 by default.
Definition at line 608 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 542 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 640 of file vtkMRMLDisplayNode.h.
|
protected |
Specifies whether to show model intersections on slice planes. 0 by default.
Definition at line 633 of file vtkMRMLDisplayNode.h.
|
protected |
Specular of the surface expressed as a number from 0 to 1. 0. by default.
Definition at line 557 of file vtkMRMLDisplayNode.h.
|
protected |
Indicates whether to render the tensor value associated with each polygon vertex. Hidden (0) by default.
Definition at line 673 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 (NULL) by default.
Definition at line 502 of file vtkMRMLDisplayNode.h.
|
protected |
Indicates whether to render the vector value associated with each polygon vertex. Hidden (0) by default.
Definition at line 666 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 714 of file vtkMRMLDisplayNode.h.
|
protected |
Indicates if the surface is visible. True by default.
Definition at line 614 of file vtkMRMLDisplayNode.h.