#include <Libs/MRML/Core/vtkMRMLMessageCollection.h>
|
static void | CallbackFunction (vtkObject *, long unsigned int, void *clientData, void *callData) |
|
A class for recording warnings and errors associated with this vtkMRMLStorableNode. A substantially similar vtkMessageCollection is planned for vtkAddon. When that is released, this will be replaced by that.
Definition at line 87 of file vtkMRMLMessageCollection.h.
◆ Superclass
◆ vtkMRMLMessageCollection() [1/2]
vtkMRMLMessageCollection::vtkMRMLMessageCollection |
( |
| ) |
|
|
protected |
◆ ~vtkMRMLMessageCollection()
vtkMRMLMessageCollection::~vtkMRMLMessageCollection |
( |
| ) |
|
|
overrideprotected |
◆ vtkMRMLMessageCollection() [2/2]
◆ AddMessage()
virtual void vtkMRMLMessageCollection::AddMessage |
( |
unsigned long |
messageType, |
|
|
const std::string & |
messageText |
|
) |
| |
|
virtual |
Append a message to the message vector To mark a message as error or warning, set messageType to vtkCommand::ErrorEvent or vtkCommand::WarningEvent.
◆ AddMessages()
virtual void vtkMRMLMessageCollection::AddMessages |
( |
vtkMRMLMessageCollection * |
source, |
|
|
const std::string & |
prefix = std::string() |
|
) |
| |
|
virtual |
Copy all messages from another collection. If prefix is specified then that string is prepended to each copied message.
◆ AddSeparator()
virtual void vtkMRMLMessageCollection::AddSeparator |
( |
| ) |
|
|
virtual |
Add a separator, for example to create message groups. (internally vtkCommand::PropertyModifiedEvent is used as messageType)
◆ CallbackFunction()
static void vtkMRMLMessageCollection::CallbackFunction |
( |
vtkObject * |
, |
|
|
long unsigned |
int, |
|
|
void * |
clientData, |
|
|
void * |
callData |
|
) |
| |
|
staticprotected |
◆ ClearMessages()
virtual void vtkMRMLMessageCollection::ClearMessages |
( |
| ) |
|
|
virtual |
Clear the message vector.
◆ DeepCopy()
Copy all messages from another collection.
◆ GetAllMessagesAsString()
virtual std::string vtkMRMLMessageCollection::GetAllMessagesAsString |
( |
bool * |
errorFound = nullptr , |
|
|
bool * |
warningFound = nullptr |
|
) |
| |
|
virtual |
Return all messages in a single formatted string. If optional errorFound or warningFound pointers are set then the caller get information about presence of warnings or errors in the message list.
◆ GetClassName()
virtual const char* vtkMRMLMessageCollection::GetClassName |
( |
| ) |
|
|
virtual |
◆ GetNthMessageText()
virtual std::string vtkMRMLMessageCollection::GetNthMessageText |
( |
int |
index | ) |
const |
|
virtual |
Get event type of a message from the message vector.
◆ GetNthMessageType()
virtual unsigned long vtkMRMLMessageCollection::GetNthMessageType |
( |
int |
index | ) |
const |
|
virtual |
Get text of a message from the message vector.
◆ GetNumberOfMessages()
virtual int vtkMRMLMessageCollection::GetNumberOfMessages |
( |
| ) |
const |
|
virtual |
Return the total number of reported messages.
◆ GetNumberOfMessagesOfType() [1/2]
virtual int vtkMRMLMessageCollection::GetNumberOfMessagesOfType |
( |
unsigned long |
messageType | ) |
const |
|
virtual |
Return the number of reported messages of the specified event type.
◆ GetNumberOfMessagesOfType() [2/2]
virtual int vtkMRMLMessageCollection::GetNumberOfMessagesOfType |
( |
const char * |
eventName | ) |
const |
|
virtual |
Get the number of reported messages of the specified event type.
◆ IsA()
virtual int vtkMRMLMessageCollection::IsA |
( |
const char * |
type | ) |
|
|
virtual |
◆ IsTypeOf()
static int vtkMRMLMessageCollection::IsTypeOf |
( |
const char * |
type | ) |
|
|
static |
◆ New()
◆ operator=()
◆ PrintSelf()
void vtkMRMLMessageCollection::PrintSelf |
( |
ostream & |
os, |
|
|
vtkIndent |
indent |
|
) |
| |
|
override |
◆ SafeDownCast()
◆ SetObservedObject()
virtual void vtkMRMLMessageCollection::SetObservedObject |
( |
vtkObject * |
observedObject | ) |
|
|
virtual |
Observe error and warnings reported by observedObject. For example, this can be used to capture errors from VTK classes and display them to the user.
◆ CallbackCommand
vtkSmartPointer<vtkCallbackCommand> vtkMRMLMessageCollection::CallbackCommand |
|
protected |
◆ Messages
std::vector<Message> vtkMRMLMessageCollection::Messages |
|
protected |
◆ ObservedObject
vtkSmartPointer<vtkObject> vtkMRMLMessageCollection::ObservedObject |
|
protected |
The documentation for this class was generated from the following file: