71 #ifndef vtkMINCImageAttributes_h
72 #define vtkMINCImageAttributes_h
74 #include "vtkIOMINCModule.h"
84 class vtkMINCImageAttributeMap;
106 vtkSetStringMacro(Name);
118 vtkGetMacro(DataType,
int);
129 this->AddDimension(dimension, 0); };
141 return this->DimensionNames; };
149 return this->DimensionLengths; };
155 return this->VariableNames; };
179 vtkGetMacro(NumberOfImageMinMaxDimensions,
int);
186 virtual int HasAttribute(
const char *variable,
const char *attribute);
193 virtual void SetAttributeValueAsArray(
const char *variable,
194 const char *attribute,
196 virtual vtkDataArray *GetAttributeValueAsArray(
const char *variable,
197 const char *attribute);
207 virtual void SetAttributeValueAsString(
const char *variable,
208 const char *attribute,
210 virtual const char *GetAttributeValueAsString(
const char *variable,
211 const char *attribute);
221 virtual void SetAttributeValueAsInt(
const char *variable,
222 const char *attribute,
224 virtual int GetAttributeValueAsInt(
const char *variable,
225 const char *attribute);
235 virtual void SetAttributeValueAsDouble(
const char *variable,
236 const char *attribute,
238 virtual double GetAttributeValueAsDouble(
const char *variable,
239 const char *attribute);
252 virtual int ValidateAttribute(
const char *varname,
263 vtkGetMacro(ValidateAttributes,
int);
280 virtual void FindValidRange(
double range[2]);
286 virtual void FindImageRange(
double range[2]);
293 virtual void PrintFileHeader();
294 virtual void PrintFileHeader(ostream &os);
301 const char *ConvertDataArrayToString(
vtkDataArray *array);
303 virtual int ValidateGlobalAttribute(
const char *attrib,
305 virtual int ValidateGeneralAttribute(
const char *varname,
308 virtual int ValidateDimensionAttribute(
const char *varname,
311 virtual int ValidateImageAttribute(
const char *varname,
314 virtual int ValidateImageMinMaxAttribute(
const char *varname,
317 virtual int ValidatePatientAttribute(
const char *varname,
320 virtual int ValidateStudyAttribute(
const char *varname,
323 virtual int ValidateAcquisitionAttribute(
const char *varname,
vtkMINCImageAttributeMap * AttributeValues
vtkDoubleArray * ImageMin
abstract base class for most VTK objects
represent and manipulate 4x4 transformation matrices
virtual vtkDoubleArray * GetImageMax()
Get the image min and max arrays.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkStringArray * StringStore
a vtkAbstractArray subclass for strings
vtkMINCImageAttributeMap * AttributeNames
dynamic, self-adjusting array of vtkIdType
virtual vtkDoubleArray * GetImageMin()
Get the image min and max arrays.
virtual vtkStringArray * GetDimensionNames()
Get the dimension names.
dynamic, self-adjusting array of double
virtual vtkIdTypeArray * GetDimensionLengths()
Get the lengths of all the dimensions.
vtkIdTypeArray * DimensionLengths
vtkStringArray * VariableNames
A container for a MINC image header.
vtkDoubleArray * ImageMax
virtual void AddDimension(const char *dimension)
Add the names of up to five dimensions.
a simple class to control print indentation
virtual vtkStringArray * GetVariableNames()
Get the names of all the variables.
abstract superclass for arrays of numeric data
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
int NumberOfImageMinMaxDimensions
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
vtkStringArray * DimensionNames