ITK
5.2.0
Insight Toolkit
|
#include <itkMeshFileReader.h>
Static Public Member Functions | |
static Pointer | New () |
Static Public Member Functions inherited from itk::MeshSource< TOutputMesh > | |
static Pointer | New () |
Static Public Member Functions inherited from itk::Object | |
static bool | GetGlobalWarningDisplay () |
static void | GlobalWarningDisplayOff () |
static void | GlobalWarningDisplayOn () |
static Pointer | New () |
static void | SetGlobalWarningDisplay (bool val) |
Static Public Member Functions inherited from itk::LightObject | |
static void | BreakOnError () |
static Pointer | New () |
Static Public Attributes | |
static constexpr unsigned int | OutputPointDimension = OutputMeshType::PointDimension |
MeshIOBase::Pointer | m_MeshIO |
bool | m_UserSpecifiedMeshIO |
std::string | m_FileName |
std::string | m_ExceptionMessage |
virtual void | SetFileName (const char *_arg) |
virtual const char * | GetFileName () const |
void | SetMeshIO (MeshIOBase *meshIO) |
virtual MeshIOBase * | GetModifiableMeshIO () |
virtual const MeshIOBase * | GetMeshIO () const |
void | GenerateOutputInformation () override |
template<typename T > | |
void | ReadPoints (T *buffer) |
template<typename T > | |
void | ReadCells (T *buffer) |
void | ReadPointData () |
void | ReadCellData () |
MeshFileReader () | |
~MeshFileReader () override=default | |
void | PrintSelf (std::ostream &os, Indent indent) const override |
template<typename T > | |
void | ConvertPointPixelBuffer (void *inputData, T *outputData, vcl_size_t numberOfPixels) |
template<typename T > | |
void | ConvertCellPixelBuffer (void *inputData, T *outputData, vcl_size_t numberOfPixels) |
void | TestFileExistanceAndReadability () |
void | GenerateData () override |
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.
Definition at line 80 of file itkMeshFileReader.h.
using itk::MeshFileReader< TOutputMesh, ConvertPointPixelTraits, ConvertCellPixelTraits >::ConstPointer = SmartPointer<const Self> |
Definition at line 88 of file itkMeshFileReader.h.
using itk::MeshFileReader< TOutputMesh, ConvertPointPixelTraits, ConvertCellPixelTraits >::OutputCellAutoPointer = typename OutputMeshType::CellAutoPointer |
Definition at line 105 of file itkMeshFileReader.h.
using itk::MeshFileReader< TOutputMesh, ConvertPointPixelTraits, ConvertCellPixelTraits >::OutputCellIdentifier = typename OutputMeshType::CellIdentifier |
Definition at line 104 of file itkMeshFileReader.h.
using itk::MeshFileReader< TOutputMesh, ConvertPointPixelTraits, ConvertCellPixelTraits >::OutputCellPixelType = typename OutputMeshType::CellPixelType |
Definition at line 101 of file itkMeshFileReader.h.
using itk::MeshFileReader< TOutputMesh, ConvertPointPixelTraits, ConvertCellPixelTraits >::OutputCellType = typename OutputMeshType::CellType |
Definition at line 106 of file itkMeshFileReader.h.
using itk::MeshFileReader< TOutputMesh, ConvertPointPixelTraits, ConvertCellPixelTraits >::OutputCoordRepType = typename OutputMeshType::CoordRepType |
Definition at line 99 of file itkMeshFileReader.h.
using itk::MeshFileReader< TOutputMesh, ConvertPointPixelTraits, ConvertCellPixelTraits >::OutputHexahedronCellType = HexahedronCell<OutputCellType> |
Definition at line 114 of file itkMeshFileReader.h.
using itk::MeshFileReader< TOutputMesh, ConvertPointPixelTraits, ConvertCellPixelTraits >::OutputLineCellType = LineCell<OutputCellType> |
Definition at line 110 of file itkMeshFileReader.h.
using itk::MeshFileReader< TOutputMesh, ConvertPointPixelTraits, ConvertCellPixelTraits >::OutputMeshType = TOutputMesh |
Define output mesh types
Definition at line 98 of file itkMeshFileReader.h.
using itk::MeshFileReader< TOutputMesh, ConvertPointPixelTraits, ConvertCellPixelTraits >::OutputPointIdentifier = typename OutputMeshType::PointIdentifier |
Definition at line 103 of file itkMeshFileReader.h.
using itk::MeshFileReader< TOutputMesh, ConvertPointPixelTraits, ConvertCellPixelTraits >::OutputPointPixelType = typename OutputMeshType::PixelType |
Definition at line 100 of file itkMeshFileReader.h.
using itk::MeshFileReader< TOutputMesh, ConvertPointPixelTraits, ConvertCellPixelTraits >::OutputPointType = typename OutputMeshType::PointType |
Definition at line 102 of file itkMeshFileReader.h.
using itk::MeshFileReader< TOutputMesh, ConvertPointPixelTraits, ConvertCellPixelTraits >::OutputPolygonCellType = PolygonCell<OutputCellType> |
Definition at line 112 of file itkMeshFileReader.h.
using itk::MeshFileReader< TOutputMesh, ConvertPointPixelTraits, ConvertCellPixelTraits >::OutputQuadraticEdgeCellType = QuadraticEdgeCell<OutputCellType> |
Definition at line 116 of file itkMeshFileReader.h.
using itk::MeshFileReader< TOutputMesh, ConvertPointPixelTraits, ConvertCellPixelTraits >::OutputQuadraticTriangleCellType = QuadraticTriangleCell<OutputCellType> |
Definition at line 117 of file itkMeshFileReader.h.
using itk::MeshFileReader< TOutputMesh, ConvertPointPixelTraits, ConvertCellPixelTraits >::OutputQuadrilateralCellType = QuadrilateralCell<OutputCellType> |
Definition at line 115 of file itkMeshFileReader.h.
using itk::MeshFileReader< TOutputMesh, ConvertPointPixelTraits, ConvertCellPixelTraits >::OutputTetrahedronCellType = TetrahedronCell<OutputCellType> |
Definition at line 113 of file itkMeshFileReader.h.
using itk::MeshFileReader< TOutputMesh, ConvertPointPixelTraits, ConvertCellPixelTraits >::OutputTriangleCellType = TriangleCell<OutputCellType> |
Definition at line 111 of file itkMeshFileReader.h.
using itk::MeshFileReader< TOutputMesh, ConvertPointPixelTraits, ConvertCellPixelTraits >::OutputVertexCellType = VertexCell<OutputCellType> |
Definition at line 109 of file itkMeshFileReader.h.
using itk::MeshFileReader< TOutputMesh, ConvertPointPixelTraits, ConvertCellPixelTraits >::Pointer = SmartPointer<Self> |
Definition at line 89 of file itkMeshFileReader.h.
using itk::MeshFileReader< TOutputMesh, ConvertPointPixelTraits, ConvertCellPixelTraits >::Self = MeshFileReader |
Standard class type aliases.
Definition at line 86 of file itkMeshFileReader.h.
using itk::MeshFileReader< TOutputMesh, ConvertPointPixelTraits, ConvertCellPixelTraits >::SizeValueType = typename MeshIOBase::SizeValueType |
Definition at line 107 of file itkMeshFileReader.h.
using itk::MeshFileReader< TOutputMesh, ConvertPointPixelTraits, ConvertCellPixelTraits >::Superclass = MeshSource<TOutputMesh> |
Definition at line 87 of file itkMeshFileReader.h.
|
protected |
Specify the file to read. This is forwarded to the IO instance.
|
overrideprotecteddefault |
Specify the file to read. This is forwarded to the IO instance.
|
protected |
Specify the file to read. This is forwarded to the IO instance.
|
protected |
Convert a block of pixels from one type to another.
|
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 >.
|
overrideprotectedvirtual |
Does the real work.
Reimplemented from itk::ProcessObject.
|
overridevirtual |
Prepare the allocation of the output mesh during the first back propagation of the pipeline.
Reimplemented from itk::ProcessObject.
|
virtual |
Specify the file to read. This is forwarded to the IO instance.
|
virtual |
Specify the file to read. This is forwarded to the IO instance.
|
virtual |
Specify the file to read. This is forwarded to the IO instance.
|
virtual |
Run-time type information (and related methods).
Reimplemented from itk::MeshSource< TOutputMesh >.
|
static |
Method for creation through the object factory.
|
overrideprotectedvirtual |
Specify the file to read. This is forwarded to the IO instance.
Reimplemented from itk::MeshSource< TOutputMesh >.
void itk::MeshFileReader< TOutputMesh, ConvertPointPixelTraits, ConvertCellPixelTraits >::ReadCellData | ( | ) |
Specify the file to read. This is forwarded to the IO instance.
void itk::MeshFileReader< TOutputMesh, ConvertPointPixelTraits, ConvertCellPixelTraits >::ReadCells | ( | T * | buffer | ) |
Specify the file to read. This is forwarded to the IO instance.
void itk::MeshFileReader< TOutputMesh, ConvertPointPixelTraits, ConvertCellPixelTraits >::ReadPointData | ( | ) |
Specify the file to read. This is forwarded to the IO instance.
void itk::MeshFileReader< TOutputMesh, ConvertPointPixelTraits, ConvertCellPixelTraits >::ReadPoints | ( | T * | buffer | ) |
Specify the file to read. This is forwarded to the IO instance.
|
virtual |
Specify the file to read. This is forwarded to the IO instance.
void itk::MeshFileReader< TOutputMesh, ConvertPointPixelTraits, ConvertCellPixelTraits >::SetMeshIO | ( | MeshIOBase * | meshIO | ) |
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).
|
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 appropriate message will be thrown.
|
private |
Specify the file to read. This is forwarded to the IO instance.
Definition at line 190 of file itkMeshFileReader.h.
|
protected |
Specify the file to read. This is forwarded to the IO instance.
Definition at line 187 of file itkMeshFileReader.h.
|
protected |
Specify the file to read. This is forwarded to the IO instance.
Definition at line 184 of file itkMeshFileReader.h.
|
protected |
Specify the file to read. This is forwarded to the IO instance.
Definition at line 185 of file itkMeshFileReader.h.
|
staticconstexpr |
Define output point dimension
Definition at line 120 of file itkMeshFileReader.h.