Protected Member Functions |
template<typename T > |
void | ConvertCellPixelBuffer (void *inputData, T *outputData, vcl_size_t numberOfPixels) |
template<typename T > |
void | ConvertPointPixelBuffer (void *inputData, T *outputData, vcl_size_t numberOfPixels) |
virtual void | GenerateData () |
| MeshFileReader () |
void | PrintSelf (std::ostream &os, Indent indent) const |
void | TestFileExistanceAndReadability () |
| ~MeshFileReader () |
void | GenerateInputRequestedRegion () |
| MeshSource () |
virtual | ~MeshSource () |
virtual void | AddInput (DataObject *input) |
virtual void | AddOutput (DataObject *output) |
bool | AddRequiredInputName (const DataObjectIdentifierType &) |
virtual void | CacheInputReleaseDataFlags () |
virtual void | GenerateOutputRequestedRegion (DataObject *output) |
virtual const
DataObjectPointerArraySizeType & | GetNumberOfRequiredInputs () |
virtual const
DataObjectPointerArraySizeType & | GetNumberOfRequiredOutputs () |
bool | IsIndexedName (const DataObjectIdentifierType &) const |
bool | IsRequiredInputName (const DataObjectIdentifierType &) const |
| itkLegacyMacro (virtual void RemoveInput(DataObject *input)) |
| itkLegacyMacro (virtual void RemoveOutput(DataObject *output)) |
| itkLegacyMacro (void SetNumberOfInputs(DataObjectPointerArraySizeType num)) |
| itkLegacyMacro (void SetNumberOfOutputs(DataObjectPointerArraySizeType num)) |
DataObjectPointerArraySizeType | MakeIndexFromName (const DataObjectIdentifierType &) const |
DataObjectIdentifierType | MakeNameFromIndex (DataObjectPointerArraySizeType) const |
| ProcessObject () |
virtual void | PropagateResetPipeline () |
virtual void | ReleaseInputs () |
virtual void | RemoveInput (const DataObjectIdentifierType &key) |
virtual void | RemoveInput (DataObjectPointerArraySizeType) |
virtual void | RemoveOutput (const DataObjectIdentifierType &key) |
virtual void | RemoveOutput (DataObjectPointerArraySizeType idx) |
bool | RemoveRequiredInputName (const DataObjectIdentifierType &) |
virtual void | RestoreInputReleaseDataFlags () |
virtual void | SetInput (const DataObjectIdentifierType &key, DataObject *input) |
virtual void | SetNthInput (DataObjectPointerArraySizeType num, DataObject *input) |
virtual void | SetNthOutput (DataObjectPointerArraySizeType num, DataObject *output) |
void | SetNumberOfIndexedInputs (DataObjectPointerArraySizeType num) |
void | SetNumberOfIndexedOutputs (DataObjectPointerArraySizeType num) |
virtual void | SetNumberOfRequiredInputs (DataObjectPointerArraySizeType) |
virtual void | SetNumberOfRequiredOutputs (DataObjectPointerArraySizeType _arg) |
virtual void | SetOutput (const DataObjectIdentifierType &key, DataObject *output) |
virtual void | SetPrimaryInput (DataObject *input) |
virtual void | SetPrimaryOutput (DataObject *output) |
void | SetRequiredInputNames (const NameArray &) |
virtual void | VerifyInputInformation () |
virtual void | VerifyPreconditions () |
| ~ProcessObject () |
DataObject * | GetInput (const DataObjectIdentifierType &key) |
const DataObject * | GetInput (const DataObjectIdentifierType &key) const |
DataObject * | GetInput (DataObjectPointerArraySizeType) |
const DataObject * | GetInput (DataObjectPointerArraySizeType idx) const |
DataObject * | GetPrimaryInput () |
const DataObject * | GetPrimaryInput () const |
DataObject * | GetOutput (const DataObjectIdentifierType &key) |
const DataObject * | GetOutput (const DataObjectIdentifierType &key) const |
DataObject * | GetOutput (DataObjectPointerArraySizeType idx) |
const DataObject * | GetOutput (DataObjectPointerArraySizeType idx) const |
DataObject * | GetPrimaryOutput () |
const DataObject * | GetPrimaryOutput () const |
virtual void | PushBackInput (const DataObject *input) |
virtual void | PopBackInput () |
virtual void | PushFrontInput (const DataObject *input) |
virtual void | PopFrontInput () |
| Object () |
bool | PrintObservers (std::ostream &os, Indent indent) const |
virtual void | SetTimeStamp (const TimeStamp &time) |
virtual | ~Object () |
virtual LightObject::Pointer | InternalClone () const |
| LightObject () |
virtual void | PrintHeader (std::ostream &os, Indent indent) const |
virtual void | PrintTrailer (std::ostream &os, Indent indent) const |
virtual | ~LightObject () |
template<class TOutputMesh, class ConvertPointPixelTraits = MeshConvertPixelTraits< typename TOutputMesh::PixelType >, class ConvertCellPixelTraits = MeshConvertPixelTraits< typename TOutputMesh::CellPixelType >>
class itk::MeshFileReader< TOutputMesh, ConvertPointPixelTraits, ConvertCellPixelTraits >
Mesh source that reads mesh data from a single file.
This source object is a general filter to read data from a variety of file formats. It works with a MeshIOBase subclass to actually do the reading of the data. Object factory machinery can be used to automatically create the MeshIOBase, or the MeshIOBase can be manually created and set.
TOutputMesh is the type expected by the external users of the filter. If data stored in the file is stored in a different format then specified by TOutputMesh, than this filter converts data between the file type and the external expected type. The ConvertTraits template argument is used to do the conversion.
A Pluggable factory pattern is used this allows different kinds of readers to be registered (even at run time) without having to modify the code in this class. Normally just setting the FileName with the appropriate suffix is enough to get the reader to instantiate the correct MeshIO and read the file properly. However, some files have no accepted suffix, so you will have to manually create the MeshIO instance of the write type.
- See also:
- MeshIOBase
- Author:
- Wanlin Zhu. Uviversity of New South Wales, Australia.
Definition at line 100 of file itkMeshFileReader.h.
template<class TOutputMesh , class ConvertPointPixelTraits = MeshConvertPixelTraits< typename TOutputMesh::PixelType >, class ConvertCellPixelTraits = MeshConvertPixelTraits< typename TOutputMesh::CellPixelType >>
virtual::itk::LightObject::Pointer itk::MeshFileReader< TOutputMesh, ConvertPointPixelTraits, ConvertCellPixelTraits >::CreateAnother |
( |
void |
| ) |
const |
|
virtual |
Create an object from an instance, potentially deferring to a factory. This method allows you to create an instance of an object that is exactly the same type as the referring object. This is useful in cases where an object has been cast back to a base class.
Reimplemented from itk::MeshSource< TOutputMesh >.
template<class TOutputMesh , class ConvertPointPixelTraits = MeshConvertPixelTraits< typename TOutputMesh::PixelType >, class ConvertCellPixelTraits = MeshConvertPixelTraits< typename TOutputMesh::CellPixelType >>
Set/Get the MeshIO helper class. Often this is created via the object factory mechanism that determines whether a particular MeshIO can read a certain file. This method provides a way to get the MeshIO instance that is created. Or you can directly specify the MeshIO to use to read a particular file in case the factory mechanism will not work properly (e.g., unknown or unusual extension).
template<class TOutputMesh , class ConvertPointPixelTraits = MeshConvertPixelTraits< typename TOutputMesh::PixelType >, class ConvertCellPixelTraits = MeshConvertPixelTraits< typename TOutputMesh::CellPixelType >>
void itk::MeshFileReader< TOutputMesh, ConvertPointPixelTraits, ConvertCellPixelTraits >::TestFileExistanceAndReadability |
( |
| ) |
|
|
protected |
Test whether the given filename exist and it is readable, this is intended to be called before attempting to use MeshIO classes for actually reading the file. If the file doesn't exist or it is not readable, and exception with an approriate message will be thrown.