Slicer
5.1
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
|
#include <Modules/Loadable/Annotations/Logic/vtkSlicerAnnotationModuleLogic.h>
Public Types | |
enum | { None = 0, Fiducial, Ruler, ROI } |
Enumeration listing valid file types to load. More... | |
enum | Events { RefreshRequestEvent = vtkCommand::UserEvent, HierarchyNodeAddedEvent } |
typedef vtkSlicerModuleLogic | Superclass |
Public Types inherited from vtkSlicerModuleLogic | |
typedef vtkMRMLAbstractLogic | Superclass |
Public Types inherited from vtkMRMLAbstractLogic | |
typedef vtkObject | Superclass |
typedef void(vtkMRMLAbstractLogic::* | TaskFunctionPointer) (void *clientdata) |
Public Member Functions | |
void | AddAnnotationNode (const char *nodeDescriptor, bool persistent=false) |
const char * | AddDisplayNodeForHierarchyNode (vtkMRMLAnnotationHierarchyNode *hnode) |
char * | AddFiducial (double r=0.0, double a=0.0, double s=0.0, const char *label=nullptr) |
bool | AddHierarchy () |
void | AddNodeCompleted (vtkMRMLAnnotationNode *annotationNode) |
void | BackupAnnotationNode (const char *id) |
Backup an Annotation MRML node. More... | |
void | CancelCurrentOrRemoveLastAddedAnnotationNode (vtkMRMLInteractionNode *interactionNode=nullptr) |
void | CreateSnapShot (const char *name, const char *description, int screenshotType, double scaleFactor, vtkImageData *screenshot) |
Create a snapShot. More... | |
void | DeleteBackupNodes (const char *id) |
Deletes a backup of an Annotation MRML node. More... | |
vtkMRMLAnnotationHierarchyNode * | GetActiveHierarchyNode () |
Get the active hierarchy node which will be used as a parent for new annotations. More... | |
virtual char * | GetActiveHierarchyNodeID () |
get/set the id of the active hierarchy node More... | |
double * | GetAnnotationColor (const char *id) |
Get the color of an annotation mrml node, returns null if can't find it. More... | |
const char * | GetAnnotationIcon (const char *id) |
Get the icon name of an Annotation MRML node. More... | |
const char * | GetAnnotationIcon (vtkMRMLNode *mrmlNode) |
double * | GetAnnotationLineColor (const char *id) |
Get the line color of an annotation mrml node, returns null if can't find it. More... | |
double * | GetAnnotationLineUnselectedColor (const char *id) |
Get the unselected line color of an annotation mrml node, returns null if can't find it. More... | |
int | GetAnnotationLockedUnlocked (const char *id) |
Get the lock flag of an Annotation MRML node. More... | |
const char * | GetAnnotationMeasurement (const char *id, bool showUnits) |
Get the measurement value of an Annotation MRML node. More... | |
const char * | GetAnnotationName (const char *id) |
Get the name of an Annotation MRML node. More... | |
double * | GetAnnotationPointColor (const char *id) |
Get the point color of an annotation mrml node, returns null if can't find it. More... | |
int | GetAnnotationPointGlyphType (const char *id) |
Get the point glyph type of the annotation mrml node,. More... | |
const char * | GetAnnotationPointGlyphTypeAsString (const char *id) |
double * | GetAnnotationPointUnselectedColor (const char *id) |
Get the unselected point color of an annotation mrml node, returns null if can't find it. More... | |
vtkStdString | GetAnnotationText (const char *id) |
Return the text of an Annotation MRML node. More... | |
double | GetAnnotationTextScale (const char *id) |
Get the text scale of an Annotation MRML node. More... | |
double * | GetAnnotationTextSelectedColor (const char *id) |
Get the selected text color of an Annotation MRML node. More... | |
double * | GetAnnotationTextUnselectedColor (const char *id) |
Get the text color of an Annotation MRML node. More... | |
double * | GetAnnotationUnselectedColor (const char *id) |
Get the unselected color of an annotation mrml node, returns null if can't find it. More... | |
int | GetAnnotationVisibility (const char *id) |
Get the visibility flag of an Annotation MRML node. More... | |
virtual const char * | GetClassName () |
const char * | GetHTMLRepresentation (vtkMRMLAnnotationNode *annotationNode, int level) |
Return HTML markup for a specific annotation node. More... | |
const char * | GetHTMLRepresentation (vtkMRMLAnnotationHierarchyNode *hierarchyNode, int level) |
Return HTML markup for a specific hierarchy node. More... | |
vtkMRMLAnnotationLineDisplayNode * | GetLineDisplayNode (const char *id) |
vtkMRMLAnnotationPointDisplayNode * | GetPointDisplayNode (const char *id) |
vtkStdString | GetSnapShotDescription (const char *id) |
Return the description of an existing annotation snapShot. More... | |
vtkStdString | GetSnapShotName (const char *id) |
Return the name of an existing annotation snapShot. More... | |
double | GetSnapShotScaleFactor (const char *id) |
Return the scaleFactor of an existing annotation snapShot. More... | |
vtkImageData * | GetSnapShotScreenshot (const char *id) |
Return the screenshot of an existing annotation snapShot. More... | |
int | GetSnapShotScreenshotType (const char *id) |
Return the screenshotType of an existing annotation snapShot. More... | |
vtkMRMLAnnotationTextDisplayNode * | GetTextDisplayNode (const char *id) |
char * | GetTopLevelHierarchyNodeID (vtkMRMLNode *node=nullptr) |
char * | GetTopLevelHierarchyNodeIDForNodeClass (vtkMRMLAnnotationNode *annotationNode) |
Return the top level annotation hierarchy node for this node's class, adding one under the top level annotation hierarchy if there is none. If the passed in node is null, return null. More... | |
virtual int | IsA (const char *type) |
bool | IsAnnotationHierarchyNode (const char *id) |
bool | IsAnnotationNode (const char *id) |
Check if node id corresponds to an annotaton node. More... | |
bool | IsSnapshotNode (const char *id) |
Check if node id corresponds to a snapShot node. More... | |
void | JumpSlicesToAnnotationCoordinate (const char *id) |
Jump 2d Slices to the location of the first control point of an Annotation MRML node. More... | |
char * | LoadAnnotation (const char *filename, const char *name, int fileType) |
void | ModifySnapShot (vtkStdString id, const char *name, const char *description, int screenshotType, double scaleFactor, vtkImageData *screenshot) |
Modify an existing snapShot. More... | |
const char * | MoveAnnotationDown (const char *id) |
const char * | MoveAnnotationUp (const char *id) |
void | PrintSelf (ostream &os, vtkIndent indent) override |
void | RegisterNodes () override |
Register MRML Node classes to Scene. Gets called automatically when the MRMLScene is attached to this logic class. More... | |
void | RemoveAnnotationNode (vtkMRMLAnnotationNode *annotationNode) |
Remove an AnnotationNode and also its 1-1 IS-A hierarchyNode, if found. More... | |
void | RestoreAnnotationNode (const char *id) |
Restore a backup of an Annotation MRML node. More... | |
virtual void | SetActiveHierarchyNodeID (const char *) |
void | SetAllAnnotationsSelected (bool selected) |
Set the selected flag of all annotation mrml nodes. More... | |
void | SetAnnotationColor (const char *id, double *color) |
Set the color of an annotation mrml node. More... | |
void | SetAnnotationLineColor (const char *id, double *color) |
Set the line color of an annotation mrml node. More... | |
void | SetAnnotationLineUnselectedColor (const char *id, double *color) |
Set the unselected line color of an annotation mrml node. More... | |
void | SetAnnotationLockedUnlocked (const char *id) |
Toggle the lock flag of an Annotation MRML node. More... | |
void | SetAnnotationPointColor (const char *id, double *color) |
Set the point color of an annotation mrml node. More... | |
void | SetAnnotationPointGlyphType (const char *id, int glyphType) |
Set the point glyph type of the annotation mrml node. More... | |
void | SetAnnotationPointGlyphTypeFromString (const char *id, const char *glyphType) |
Set the point glyph type of the annotation mrml node from a string. More... | |
void | SetAnnotationPointUnselectedColor (const char *id, double *color) |
Set the unselected point color of an annotation mrml node. More... | |
void | SetAnnotationSelected (const char *id, bool selected) |
Set the selected flag of an Annotation MRML node. More... | |
void | SetAnnotationText (const char *id, const char *newtext) |
Set the text of an Annotation MRML node. More... | |
void | SetAnnotationTextScale (const char *id, double textScale) |
Set the text scale of an Annotation MRML node. More... | |
void | SetAnnotationTextSelectedColor (const char *id, double *color) |
Set the selected text color of an Annotation MRML node. More... | |
void | SetAnnotationTextUnselectedColor (const char *id, double *color) |
Set the text color of an Annotation MRML node. More... | |
void | SetAnnotationUnselectedColor (const char *id, double *color) |
Set the unselected color of an annotation mrml node. More... | |
void | SetAnnotationVisibility (const char *id) |
Toggle the visibility flag of an Annotation MRML node. More... | |
void | SetHierarchyAnnotationsLockFlag (vtkMRMLAnnotationHierarchyNode *hierarchyNode, bool flag) |
Set the lock flag on all annotations in the hierarchy. If hierarchy is null, use active hierarchy. More... | |
void | SetHierarchyAnnotationsVisibleFlag (vtkMRMLAnnotationHierarchyNode *hierarchyNode, bool flag) |
Set the visible flag on all annotations in the hierarchy. If hierarchy is null, use active hierarchy. More... | |
void | StartPlaceMode (bool persistent=false, vtkMRMLInteractionNode *interactionNode=nullptr) |
void | StopPlaceMode (bool persistent=false, vtkMRMLInteractionNode *interactionNode=nullptr) |
Public Member Functions inherited from vtkSlicerModuleLogic | |
virtual vtkSlicerApplicationLogic * | GetApplicationLogic () |
Get access to overall application state. More... | |
virtual vtkMRMLAbstractLogic * | GetModuleLogic (const char *moduleName) |
Convenience method for getting another module's logic from the application logic. More... | |
std::string | GetModuleShareDirectory () const |
void | PrintSelf (ostream &os, vtkIndent indent) override |
void | SetModuleShareDirectory (const std::string &shareDirectory) |
Public Member Functions inherited from vtkMRMLAbstractLogic | |
virtual vtkMRMLApplicationLogic * | GetMRMLApplicationLogic () const |
Get access to overall application state. More... | |
vtkMRMLScene * | GetMRMLScene () const |
Return a reference to the current MRML scene. More... | |
void | PrintSelf (ostream &os, vtkIndent indent) override |
virtual void | SetMRMLApplicationLogic (vtkMRMLApplicationLogic *logic) |
void | SetMRMLScene (vtkMRMLScene *newScene) |
Set and observe the MRMLScene. More... | |
Static Public Member Functions | |
static int | IsTypeOf (const char *type) |
static vtkSlicerAnnotationModuleLogic * | New () |
static vtkSlicerAnnotationModuleLogic * | SafeDownCast (vtkObject *o) |
Static Public Member Functions inherited from vtkSlicerModuleLogic | |
static int | IsTypeOf (const char *type) |
static vtkSlicerModuleLogic * | New () |
The Usual vtk class functions. More... | |
static vtkSlicerModuleLogic * | SafeDownCast (vtkObject *o) |
Static Public Member Functions inherited from vtkMRMLAbstractLogic | |
static int | IsTypeOf (const char *type) |
static vtkMRMLAbstractLogic * | New () |
static vtkMRMLAbstractLogic * | SafeDownCast (vtkObject *o) |
Additional Inherited Members | |
Static Protected Member Functions inherited from vtkMRMLAbstractLogic | |
static void | MRMLLogicsCallback (vtkObject *caller, unsigned long eid, void *clientData, void *callData) |
MRMLLogicCallback is a static function to relay modified events from the logics. More... | |
static void | MRMLNodesCallback (vtkObject *caller, unsigned long eid, void *clientData, void *callData) |
MRMLNodesCallback is a static function to relay modified events from the nodes. More... | |
static void | MRMLSceneCallback (vtkObject *caller, unsigned long eid, void *clientData, void *callData) |
Definition at line 22 of file vtkSlicerAnnotationModuleLogic.h.
Definition at line 31 of file vtkSlicerAnnotationModuleLogic.h.
anonymous enum |
Enumeration listing valid file types to load.
Enumerator | |
---|---|
None | |
Fiducial | |
Ruler | |
ROI |
Definition at line 258 of file vtkSlicerAnnotationModuleLogic.h.
Enumerator | |
---|---|
RefreshRequestEvent | |
HierarchyNodeAddedEvent |
Definition at line 26 of file vtkSlicerAnnotationModuleLogic.h.
|
protected |
|
overrideprotected |
void vtkSlicerAnnotationModuleLogic::AddAnnotationNode | ( | const char * | nodeDescriptor, |
bool | persistent = false |
||
) |
const char* vtkSlicerAnnotationModuleLogic::AddDisplayNodeForHierarchyNode | ( | vtkMRMLAnnotationHierarchyNode * | hnode | ) |
Add a model display node to the scene for a passed in hierarchy node, if it doesn't already have one, return the ID, nullptr on failure
char* vtkSlicerAnnotationModuleLogic::AddFiducial | ( | double | r = 0.0 , |
double | a = 0.0 , |
||
double | s = 0.0 , |
||
const char * | label = nullptr |
||
) |
Add a new fiducial to the currently active hierarchy. Places the fiducial at the given RAS coordinates (default 0,0,0) with the given label (if nullptr, uses default naming convention). Returns the ID of the newly added node.
bool vtkSlicerAnnotationModuleLogic::AddHierarchy | ( | ) |
Add a new visible annotation hierarchy. The active hierarchy node will be the parent. If there is no active hierarchy node, use the top-level annotation hierarchy node as the parent. If there is no top-level annotation hierarchy node, create additionally a top-level hierarchy node which serves as a parent to the new hierarchy node. The newly added hierarchy node will be the active hierarchy node. Return true on success, false on failure.
void vtkSlicerAnnotationModuleLogic::AddNodeCompleted | ( | vtkMRMLAnnotationNode * | annotationNode | ) |
void vtkSlicerAnnotationModuleLogic::BackupAnnotationNode | ( | const char * | id | ) |
Backup an Annotation MRML node.
void vtkSlicerAnnotationModuleLogic::CancelCurrentOrRemoveLastAddedAnnotationNode | ( | vtkMRMLInteractionNode * | interactionNode = nullptr | ) |
Cancel the current annotation placement or remove last annotation node. By default, the singleton interaction node is updated.
void vtkSlicerAnnotationModuleLogic::CreateSnapShot | ( | const char * | name, |
const char * | description, | ||
int | screenshotType, | ||
double | scaleFactor, | ||
vtkImageData * | screenshot | ||
) |
Create a snapShot.
void vtkSlicerAnnotationModuleLogic::DeleteBackupNodes | ( | const char * | id | ) |
Deletes a backup of an Annotation MRML node.
vtkMRMLAnnotationHierarchyNode* vtkSlicerAnnotationModuleLogic::GetActiveHierarchyNode | ( | ) |
Get the active hierarchy node which will be used as a parent for new annotations.
|
virtual |
get/set the id of the active hierarchy node
double* vtkSlicerAnnotationModuleLogic::GetAnnotationColor | ( | const char * | id | ) |
Get the color of an annotation mrml node, returns null if can't find it.
const char* vtkSlicerAnnotationModuleLogic::GetAnnotationIcon | ( | const char * | id | ) |
Get the icon name of an Annotation MRML node.
const char* vtkSlicerAnnotationModuleLogic::GetAnnotationIcon | ( | vtkMRMLNode * | mrmlNode | ) |
double* vtkSlicerAnnotationModuleLogic::GetAnnotationLineColor | ( | const char * | id | ) |
Get the line color of an annotation mrml node, returns null if can't find it.
double* vtkSlicerAnnotationModuleLogic::GetAnnotationLineUnselectedColor | ( | const char * | id | ) |
Get the unselected line color of an annotation mrml node, returns null if can't find it.
int vtkSlicerAnnotationModuleLogic::GetAnnotationLockedUnlocked | ( | const char * | id | ) |
Get the lock flag of an Annotation MRML node.
const char* vtkSlicerAnnotationModuleLogic::GetAnnotationMeasurement | ( | const char * | id, |
bool | showUnits | ||
) |
Get the measurement value of an Annotation MRML node.
const char* vtkSlicerAnnotationModuleLogic::GetAnnotationName | ( | const char * | id | ) |
Get the name of an Annotation MRML node.
double* vtkSlicerAnnotationModuleLogic::GetAnnotationPointColor | ( | const char * | id | ) |
Get the point color of an annotation mrml node, returns null if can't find it.
int vtkSlicerAnnotationModuleLogic::GetAnnotationPointGlyphType | ( | const char * | id | ) |
Get the point glyph type of the annotation mrml node,.
const char* vtkSlicerAnnotationModuleLogic::GetAnnotationPointGlyphTypeAsString | ( | const char * | id | ) |
Get the point glyph type of the annotation mrml node as a string, returns null if can't find it
double* vtkSlicerAnnotationModuleLogic::GetAnnotationPointUnselectedColor | ( | const char * | id | ) |
Get the unselected point color of an annotation mrml node, returns null if can't find it.
vtkStdString vtkSlicerAnnotationModuleLogic::GetAnnotationText | ( | const char * | id | ) |
Return the text of an Annotation MRML node.
double vtkSlicerAnnotationModuleLogic::GetAnnotationTextScale | ( | const char * | id | ) |
Get the text scale of an Annotation MRML node.
double* vtkSlicerAnnotationModuleLogic::GetAnnotationTextSelectedColor | ( | const char * | id | ) |
Get the selected text color of an Annotation MRML node.
double* vtkSlicerAnnotationModuleLogic::GetAnnotationTextUnselectedColor | ( | const char * | id | ) |
Get the text color of an Annotation MRML node.
double* vtkSlicerAnnotationModuleLogic::GetAnnotationUnselectedColor | ( | const char * | id | ) |
Get the unselected color of an annotation mrml node, returns null if can't find it.
int vtkSlicerAnnotationModuleLogic::GetAnnotationVisibility | ( | const char * | id | ) |
Get the visibility flag of an Annotation MRML node.
|
virtual |
Reimplemented from vtkSlicerModuleLogic.
const char* vtkSlicerAnnotationModuleLogic::GetHTMLRepresentation | ( | vtkMRMLAnnotationNode * | annotationNode, |
int | level | ||
) |
Return HTML markup for a specific annotation node.
const char* vtkSlicerAnnotationModuleLogic::GetHTMLRepresentation | ( | vtkMRMLAnnotationHierarchyNode * | hierarchyNode, |
int | level | ||
) |
Return HTML markup for a specific hierarchy node.
vtkMRMLAnnotationLineDisplayNode* vtkSlicerAnnotationModuleLogic::GetLineDisplayNode | ( | const char * | id | ) |
Return the line display node for the annotation mrml node with this id, null if not a valid node, not an annotation node, or doesn't have a line display node
vtkMRMLAnnotationPointDisplayNode* vtkSlicerAnnotationModuleLogic::GetPointDisplayNode | ( | const char * | id | ) |
Return the point display node for the annotation mrml node with this id, null if not a valid node, not an annotation node, or doesn't have a point display node
vtkStdString vtkSlicerAnnotationModuleLogic::GetSnapShotDescription | ( | const char * | id | ) |
Return the description of an existing annotation snapShot.
vtkStdString vtkSlicerAnnotationModuleLogic::GetSnapShotName | ( | const char * | id | ) |
Return the name of an existing annotation snapShot.
double vtkSlicerAnnotationModuleLogic::GetSnapShotScaleFactor | ( | const char * | id | ) |
Return the scaleFactor of an existing annotation snapShot.
vtkImageData* vtkSlicerAnnotationModuleLogic::GetSnapShotScreenshot | ( | const char * | id | ) |
Return the screenshot of an existing annotation snapShot.
int vtkSlicerAnnotationModuleLogic::GetSnapShotScreenshotType | ( | const char * | id | ) |
Return the screenshotType of an existing annotation snapShot.
vtkMRMLAnnotationTextDisplayNode* vtkSlicerAnnotationModuleLogic::GetTextDisplayNode | ( | const char * | id | ) |
Return the text display node for the annotation mrml node with this id, null if not a valid node, not an annotation node, or doesn't have a text display node
char* vtkSlicerAnnotationModuleLogic::GetTopLevelHierarchyNodeID | ( | vtkMRMLNode * | node = nullptr | ) |
Return the toplevel Annotation hierarchy node ID or create one and add it to the scene if there is none: If an optional annotationNode is given, insert the new toplevel hierarchy before it. If not, just add the new toplevel hierarchy node.
char* vtkSlicerAnnotationModuleLogic::GetTopLevelHierarchyNodeIDForNodeClass | ( | vtkMRMLAnnotationNode * | annotationNode | ) |
Return the top level annotation hierarchy node for this node's class, adding one under the top level annotation hierarchy if there is none. If the passed in node is null, return null.
|
virtual |
Reimplemented from vtkSlicerModuleLogic.
bool vtkSlicerAnnotationModuleLogic::IsAnnotationHierarchyNode | ( | const char * | id | ) |
bool vtkSlicerAnnotationModuleLogic::IsAnnotationNode | ( | const char * | id | ) |
Check if node id corresponds to an annotaton node.
bool vtkSlicerAnnotationModuleLogic::IsSnapshotNode | ( | const char * | id | ) |
Check if node id corresponds to a snapShot node.
|
static |
void vtkSlicerAnnotationModuleLogic::JumpSlicesToAnnotationCoordinate | ( | const char * | id | ) |
Jump 2d Slices to the location of the first control point of an Annotation MRML node.
char* vtkSlicerAnnotationModuleLogic::LoadAnnotation | ( | const char * | filename, |
const char * | name, | ||
int | fileType | ||
) |
Load an annotation from file, return nullptr on error, node ID string otherwise. Adds the appropriate storage and display nodes to the scene as well. fileType is from this class's enum
void vtkSlicerAnnotationModuleLogic::ModifySnapShot | ( | vtkStdString | id, |
const char * | name, | ||
const char * | description, | ||
int | screenshotType, | ||
double | scaleFactor, | ||
vtkImageData * | screenshot | ||
) |
Modify an existing snapShot.
const char* vtkSlicerAnnotationModuleLogic::MoveAnnotationDown | ( | const char * | id | ) |
const char* vtkSlicerAnnotationModuleLogic::MoveAnnotationUp | ( | const char * | id | ) |
|
static |
|
overrideprotectedvirtual |
Called after a scene is set to the logic and nodes are registered (RegisterNodes()). The scene events to observe are already set in SetMRMLSceneInternal(). By default, ObserveMRMLScene() calls UpdateFromMRMLScene(). Override for a custom behavior.
Reimplemented from vtkMRMLAbstractLogic.
|
protectedvirtual |
|
overrideprotectedvirtual |
If vtkMRMLScene::EndCloseEvent has been set to be observed in SetMRMLSceneInternal, it is called when the scene fires the event
Reimplemented from vtkMRMLAbstractLogic.
|
overrideprotectedvirtual |
If vtkMRMLScene::NodeAddedEvent has been set to be observed in SetMRMLSceneInternal, it is called when the scene fires the event
Reimplemented from vtkMRMLAbstractLogic.
|
override |
|
overrideprotectedvirtual |
Receives all the events fired by the nodes. To listen to a node, you can add an observer using GetMRMLNodesCallbackCommand() or use the utility macros vtk[SetAndObserve|Observe]MRMLNode[Event]Macro ProcessMRMLNodesEvents calls OnMRMLNodeModified when event is vtkCommand::ModifiedEvent.
Reimplemented from vtkMRMLAbstractLogic.
|
overridevirtual |
Register MRML Node classes to Scene. Gets called automatically when the MRMLScene is attached to this logic class.
Reimplemented from vtkMRMLAbstractLogic.
void vtkSlicerAnnotationModuleLogic::RemoveAnnotationNode | ( | vtkMRMLAnnotationNode * | annotationNode | ) |
Remove an AnnotationNode and also its 1-1 IS-A hierarchyNode, if found.
void vtkSlicerAnnotationModuleLogic::RestoreAnnotationNode | ( | const char * | id | ) |
Restore a backup of an Annotation MRML node.
|
static |
|
virtual |
void vtkSlicerAnnotationModuleLogic::SetAllAnnotationsSelected | ( | bool | selected | ) |
Set the selected flag of all annotation mrml nodes.
void vtkSlicerAnnotationModuleLogic::SetAnnotationColor | ( | const char * | id, |
double * | color | ||
) |
Set the color of an annotation mrml node.
void vtkSlicerAnnotationModuleLogic::SetAnnotationLineColor | ( | const char * | id, |
double * | color | ||
) |
Set the line color of an annotation mrml node.
void vtkSlicerAnnotationModuleLogic::SetAnnotationLineUnselectedColor | ( | const char * | id, |
double * | color | ||
) |
Set the unselected line color of an annotation mrml node.
void vtkSlicerAnnotationModuleLogic::SetAnnotationLockedUnlocked | ( | const char * | id | ) |
Toggle the lock flag of an Annotation MRML node.
void vtkSlicerAnnotationModuleLogic::SetAnnotationPointColor | ( | const char * | id, |
double * | color | ||
) |
Set the point color of an annotation mrml node.
void vtkSlicerAnnotationModuleLogic::SetAnnotationPointGlyphType | ( | const char * | id, |
int | glyphType | ||
) |
Set the point glyph type of the annotation mrml node.
void vtkSlicerAnnotationModuleLogic::SetAnnotationPointGlyphTypeFromString | ( | const char * | id, |
const char * | glyphType | ||
) |
Set the point glyph type of the annotation mrml node from a string.
void vtkSlicerAnnotationModuleLogic::SetAnnotationPointUnselectedColor | ( | const char * | id, |
double * | color | ||
) |
Set the unselected point color of an annotation mrml node.
void vtkSlicerAnnotationModuleLogic::SetAnnotationSelected | ( | const char * | id, |
bool | selected | ||
) |
Set the selected flag of an Annotation MRML node.
void vtkSlicerAnnotationModuleLogic::SetAnnotationText | ( | const char * | id, |
const char * | newtext | ||
) |
Set the text of an Annotation MRML node.
void vtkSlicerAnnotationModuleLogic::SetAnnotationTextScale | ( | const char * | id, |
double | textScale | ||
) |
Set the text scale of an Annotation MRML node.
void vtkSlicerAnnotationModuleLogic::SetAnnotationTextSelectedColor | ( | const char * | id, |
double * | color | ||
) |
Set the selected text color of an Annotation MRML node.
void vtkSlicerAnnotationModuleLogic::SetAnnotationTextUnselectedColor | ( | const char * | id, |
double * | color | ||
) |
Set the text color of an Annotation MRML node.
void vtkSlicerAnnotationModuleLogic::SetAnnotationUnselectedColor | ( | const char * | id, |
double * | color | ||
) |
Set the unselected color of an annotation mrml node.
void vtkSlicerAnnotationModuleLogic::SetAnnotationVisibility | ( | const char * | id | ) |
Toggle the visibility flag of an Annotation MRML node.
void vtkSlicerAnnotationModuleLogic::SetHierarchyAnnotationsLockFlag | ( | vtkMRMLAnnotationHierarchyNode * | hierarchyNode, |
bool | flag | ||
) |
Set the lock flag on all annotations in the hierarchy. If hierarchy is null, use active hierarchy.
void vtkSlicerAnnotationModuleLogic::SetHierarchyAnnotationsVisibleFlag | ( | vtkMRMLAnnotationHierarchyNode * | hierarchyNode, |
bool | flag | ||
) |
Set the visible flag on all annotations in the hierarchy. If hierarchy is null, use active hierarchy.
|
overrideprotectedvirtual |
Called each time a new scene is set. Can be reimplemented in derivated classes. Doesn't observe the scene by default, that means that UpdateFromMRMLScene() won't be called by default when a scene is imported, closed or restored, only when a new scene is set.
Reimplemented from vtkMRMLAbstractLogic.
void vtkSlicerAnnotationModuleLogic::StartPlaceMode | ( | bool | persistent = false , |
vtkMRMLInteractionNode * | interactionNode = nullptr |
||
) |
Start the place mode for annotations. By default, the singleton interaction node is updated.
void vtkSlicerAnnotationModuleLogic::StopPlaceMode | ( | bool | persistent = false , |
vtkMRMLInteractionNode * | interactionNode = nullptr |
||
) |
Exit the place mode for annotations. By default, the singleton interaction node is updated.