VTK
|
A container for a MINC image header. More...
#include <vtkMINCImageAttributes.h>
Public Types | |
typedef vtkObject | Superclass |
![]() | |
typedef vtkObjectBase | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkMINCImageAttributes * | NewInstance () const |
virtual void | PrintSelf (ostream &os, vtkIndent indent) |
virtual void | Reset () |
virtual vtkStringArray * | GetAttributeNames (const char *variable) |
virtual int | HasAttribute (const char *variable, const char *attribute) |
virtual void | ShallowCopy (vtkMINCImageAttributes *source) |
virtual void | FindValidRange (double range[2]) |
virtual void | FindImageRange (double range[2]) |
virtual void | SetName (const char *) |
virtual char * | GetName () |
virtual void | SetDataType (int) |
virtual int | GetDataType () |
virtual void | AddDimension (const char *dimension) |
virtual void | AddDimension (const char *dimension, vtkIdType length) |
virtual vtkStringArray * | GetDimensionNames () |
virtual vtkIdTypeArray * | GetDimensionLengths () |
virtual vtkStringArray * | GetVariableNames () |
virtual void | SetImageMin (vtkDoubleArray *imageMin) |
virtual void | SetImageMax (vtkDoubleArray *imageMax) |
virtual vtkDoubleArray * | GetImageMin () |
virtual vtkDoubleArray * | GetImageMax () |
virtual int | GetNumberOfImageMinMaxDimensions () |
virtual void | SetNumberOfImageMinMaxDimensions (int) |
virtual void | SetAttributeValueAsArray (const char *variable, const char *attribute, vtkDataArray *array) |
virtual vtkDataArray * | GetAttributeValueAsArray (const char *variable, const char *attribute) |
virtual void | SetAttributeValueAsString (const char *variable, const char *attribute, const char *value) |
virtual const char * | GetAttributeValueAsString (const char *variable, const char *attribute) |
virtual void | SetAttributeValueAsInt (const char *variable, const char *attribute, int value) |
virtual int | GetAttributeValueAsInt (const char *variable, const char *attribute) |
virtual void | SetAttributeValueAsDouble (const char *variable, const char *attribute, double value) |
virtual double | GetAttributeValueAsDouble (const char *variable, const char *attribute) |
virtual int | ValidateAttribute (const char *varname, const char *attname, vtkDataArray *array) |
virtual void | SetValidateAttributes (int) |
virtual void | ValidateAttributesOn () |
virtual void | ValidateAttributesOff () |
virtual int | GetValidateAttributes () |
virtual void | PrintFileHeader () |
virtual void | PrintFileHeader (ostream &os) |
![]() | |
vtkObject * | NewInstance () const |
virtual void | DebugOn () |
virtual void | DebugOff () |
bool | GetDebug () |
void | SetDebug (bool debugFlag) |
virtual void | Modified () |
virtual unsigned long | GetMTime () |
unsigned long | AddObserver (unsigned long event, vtkCommand *, float priority=0.0f) |
unsigned long | AddObserver (const char *event, vtkCommand *, float priority=0.0f) |
vtkCommand * | GetCommand (unsigned long tag) |
void | RemoveObserver (vtkCommand *) |
void | RemoveObservers (unsigned long event, vtkCommand *) |
void | RemoveObservers (const char *event, vtkCommand *) |
int | HasObserver (unsigned long event, vtkCommand *) |
int | HasObserver (const char *event, vtkCommand *) |
void | RemoveObserver (unsigned long tag) |
void | RemoveObservers (unsigned long event) |
void | RemoveObservers (const char *event) |
void | RemoveAllObservers () |
int | HasObserver (unsigned long event) |
int | HasObserver (const char *event) |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f) |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
int | InvokeEvent (unsigned long event, void *callData) |
int | InvokeEvent (const char *event, void *callData) |
int | InvokeEvent (unsigned long event) |
int | InvokeEvent (const char *event) |
![]() | |
const char * | GetClassName () const |
virtual void | Delete () |
virtual void | FastDelete () |
void | Print (ostream &os) |
virtual void | Register (vtkObjectBase *o) |
virtual void | UnRegister (vtkObjectBase *o) |
void | SetReferenceCount (int) |
void | PrintRevisions (ostream &) |
virtual void | PrintHeader (ostream &os, vtkIndent indent) |
virtual void | PrintTrailer (ostream &os, vtkIndent indent) |
int | GetReferenceCount () |
Static Public Member Functions | |
static int | IsTypeOf (const char *type) |
static vtkMINCImageAttributes * | SafeDownCast (vtkObjectBase *o) |
static vtkMINCImageAttributes * | New () |
![]() | |
static int | IsTypeOf (const char *type) |
static vtkObject * | SafeDownCast (vtkObjectBase *o) |
static vtkObject * | New () |
static void | BreakOnError () |
static void | SetGlobalWarningDisplay (int val) |
static void | GlobalWarningDisplayOn () |
static void | GlobalWarningDisplayOff () |
static int | GetGlobalWarningDisplay () |
![]() | |
static int | IsTypeOf (const char *name) |
static vtkObjectBase * | New () |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkMINCImageAttributes () | |
~vtkMINCImageAttributes () | |
const char * | ConvertDataArrayToString (vtkDataArray *array) |
virtual int | ValidateGlobalAttribute (const char *attrib, vtkDataArray *array) |
virtual int | ValidateGeneralAttribute (const char *varname, const char *attname, vtkDataArray *array) |
virtual int | ValidateDimensionAttribute (const char *varname, const char *attname, vtkDataArray *array) |
virtual int | ValidateImageAttribute (const char *varname, const char *attname, vtkDataArray *array) |
virtual int | ValidateImageMinMaxAttribute (const char *varname, const char *attname, vtkDataArray *array) |
virtual int | ValidatePatientAttribute (const char *varname, const char *attname, vtkDataArray *array) |
virtual int | ValidateStudyAttribute (const char *varname, const char *attname, vtkDataArray *array) |
virtual int | ValidateAcquisitionAttribute (const char *varname, const char *attname, vtkDataArray *array) |
![]() | |
vtkObject () | |
virtual | ~vtkObject () |
virtual void | RegisterInternal (vtkObjectBase *, int check) |
virtual void | UnRegisterInternal (vtkObjectBase *, int check) |
void | InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL) |
void | InternalReleaseFocus () |
![]() | |
vtkObjectBase () | |
virtual | ~vtkObjectBase () |
virtual void | CollectRevisions (ostream &) |
virtual void | ReportReferences (vtkGarbageCollector *) |
vtkObjectBase (const vtkObjectBase &) | |
void | operator= (const vtkObjectBase &) |
Protected Attributes | |
vtkStringArray * | DimensionNames |
vtkIdTypeArray * | DimensionLengths |
vtkStringArray * | VariableNames |
vtkMINCImageAttributeMap * | AttributeNames |
vtkMINCImageAttributeMap * | AttributeValues |
vtkStringArray * | StringStore |
vtkDoubleArray * | ImageMin |
vtkDoubleArray * | ImageMax |
int | NumberOfImageMinMaxDimensions |
int | DataType |
char * | Name |
int | ValidateAttributes |
![]() | |
bool | Debug |
vtkTimeStamp | MTime |
vtkSubjectHelper * | SubjectHelper |
![]() | |
vtkAtomicInt32 | ReferenceCount |
vtkWeakPointerBase ** | WeakPointers |
A container for a MINC image header.
This class provides methods to access all of the information contained in the MINC header. If you read a MINC file into VTK and then write it out again, you can use writer->SetImageAttributes(reader->GetImageAttributes) to ensure that all of the medical information contained in the file is tranferred from the reader to the writer. If you want to change any of the header information, you must use ShallowCopy to make a copy of the reader's attributes and then modify only the copy.
Definition at line 85 of file vtkMINCImageAttributes.h.
Definition at line 88 of file vtkMINCImageAttributes.h.
|
protected |
|
protected |
|
static |
|
virtual |
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkObject.
|
static |
|
protectedvirtual |
Reimplemented from vtkObject.
vtkMINCImageAttributes* vtkMINCImageAttributes::NewInstance | ( | ) | const |
|
static |
|
virtual |
|
virtual |
Reset all the attributes in preparation for loading new information.
|
virtual |
Get the name of the image, not including the path or the extension. This is only needed for printing the header and there is usually no need to set it.
|
virtual |
Get the name of the image, not including the path or the extension. This is only needed for printing the header and there is usually no need to set it.
|
virtual |
Get the image data type, as stored on disk. This information is useful if the file was converted to floating-point when it was loaded. When writing a file from float or double image data, you can use this method to prescribe the output type.
|
virtual |
Get the image data type, as stored on disk. This information is useful if the file was converted to floating-point when it was loaded. When writing a file from float or double image data, you can use this method to prescribe the output type.
|
inlinevirtual |
Add the names of up to five dimensions. The ordering of these dimensions will determine the dimension order of the file. If no DimensionNames are set, the writer will set the dimension order of the file to be the same as the dimension order in memory.
Definition at line 118 of file vtkMINCImageAttributes.h.
|
virtual |
Add the names of up to five dimensions. The ordering of these dimensions will determine the dimension order of the file. If no DimensionNames are set, the writer will set the dimension order of the file to be the same as the dimension order in memory.
|
inlinevirtual |
Get the dimension names. The dimension names are same order as written in the file, starting with the slowest-varying dimension. Use this method to get the array if you need to change "space" dimensions to "frequency" after performing a Fourier transform.
Definition at line 128 of file vtkMINCImageAttributes.h.
|
inlinevirtual |
Get the lengths of all the dimensions. The dimension lengths are informative, the vtkMINCImageWriter does not look at these values but instead uses the dimension sizes of its input.
Definition at line 136 of file vtkMINCImageAttributes.h.
|
inlinevirtual |
Get the names of all the variables.
Definition at line 142 of file vtkMINCImageAttributes.h.
|
virtual |
List the attribute names for a variable. Set the variable to the empty string to get a list of the global attributes.
|
virtual |
Get the image min and max arrays. These are set by the reader, but they aren't used by the writer except to compute the full real data range of the original file.
|
virtual |
Get the image min and max arrays. These are set by the reader, but they aren't used by the writer except to compute the full real data range of the original file.
|
inlinevirtual |
Get the image min and max arrays. These are set by the reader, but they aren't used by the writer except to compute the full real data range of the original file.
Definition at line 156 of file vtkMINCImageAttributes.h.
|
inlinevirtual |
Get the image min and max arrays. These are set by the reader, but they aren't used by the writer except to compute the full real data range of the original file.
Definition at line 157 of file vtkMINCImageAttributes.h.
|
virtual |
Get the number of ImageMinMax dimensions.
|
virtual |
Get the number of ImageMinMax dimensions.
|
virtual |
Check to see if a particular attribute exists.
|
virtual |
Set attribute values for a variable as a vtkDataArray. Set the variable to the empty string to access global attributes.
|
virtual |
Set attribute values for a variable as a vtkDataArray. Set the variable to the empty string to access global attributes.
|
virtual |
Set an attribute value as a string. Set the variable to the empty string to access global attributes. If you specify a variable that does not exist, it will be created.
|
virtual |
Set an attribute value as a string. Set the variable to the empty string to access global attributes. If you specify a variable that does not exist, it will be created.
|
virtual |
Set an attribute value as an int. Set the variable to the empty string to access global attributes. If you specify a variable that does not exist, it will be created.
|
virtual |
Set an attribute value as an int. Set the variable to the empty string to access global attributes. If you specify a variable that does not exist, it will be created.
|
virtual |
Set an attribute value as a double. Set the variable to the empty string to access global attributes. If you specify a variable that does not exist, it will be created.
|
virtual |
Set an attribute value as a double. Set the variable to the empty string to access global attributes. If you specify a variable that does not exist, it will be created.
|
virtual |
Validate a particular attribute. This involves checking that the attribute is a MINC standard attribute, and checking whether it can be set (as opposed to being set automatically from the image information). The return values is 0 if the attribute is set automatically and therefore should not be copied from here, 1 if this attribute is valid and should be set, and 2 if the attribute is non-standard.
|
virtual |
Set this to Off if you do not want to automatically validate every attribute that is set.
|
virtual |
Set this to Off if you do not want to automatically validate every attribute that is set.
|
virtual |
Set this to Off if you do not want to automatically validate every attribute that is set.
|
virtual |
Set this to Off if you do not want to automatically validate every attribute that is set.
|
virtual |
Do a shallow copy. This will copy all the attributes from the source. It is much more efficient than a DeepCopy would be, since it only copies pointers to the attribute values instead of copying the arrays themselves. You must use this method to make a copy if you want to modify any MINC attributes from a MINCReader before you pass them to a MINCWriter.
|
virtual |
Find the valid range of the data from the information stored in the attributes.
|
virtual |
Find the image range of the data from the information stored in the attributes.
|
virtual |
A diagnostic function. Print the header of the file in the same format as ncdump or mincheader.
|
virtual |
A diagnostic function. Print the header of the file in the same format as ncdump or mincheader.
|
protected |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protected |
Definition at line 287 of file vtkMINCImageAttributes.h.
|
protected |
Definition at line 288 of file vtkMINCImageAttributes.h.
|
protected |
Definition at line 290 of file vtkMINCImageAttributes.h.
|
protected |
Definition at line 291 of file vtkMINCImageAttributes.h.
|
protected |
Definition at line 292 of file vtkMINCImageAttributes.h.
|
protected |
Definition at line 294 of file vtkMINCImageAttributes.h.
|
protected |
Definition at line 296 of file vtkMINCImageAttributes.h.
|
protected |
Definition at line 297 of file vtkMINCImageAttributes.h.
|
protected |
Definition at line 298 of file vtkMINCImageAttributes.h.
|
protected |
Definition at line 300 of file vtkMINCImageAttributes.h.
|
protected |
Definition at line 301 of file vtkMINCImageAttributes.h.
|
protected |
Definition at line 303 of file vtkMINCImageAttributes.h.