Seg3D  2.4
Seg3D is a free volume segmentation and processing tool developed by the NIH Center for Integrative Biomedical Computing at the University of Utah Scientific Computing and Imaging (SCI) Institute.
Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
Core::GridTransform Class Reference
Inheritance diagram for Core::GridTransform:
Core::Transform

Public Member Functions

 GridTransform (const GridTransform &)
 
 GridTransform (size_t nx, size_t ny, size_t nz, const Point &, const Vector &, const Vector &, const Vector &)
 
 GridTransform (size_t nx, size_t ny, size_t nz, const Transform &transform)
 
 GridTransform (size_t nx, size_t ny, size_t nz, const Transform &transform, bool node_centered)
 
 GridTransform (size_t nx, size_t ny, size_t nz)
 
GridTransformoperator= (const GridTransform &copy)
 
bool operator== (const GridTransform &) const
 
bool operator!= (const GridTransform &) const
 
size_t get_nx () const
 Get the dimensions of the grid this class describes.
 
size_t get_ny () const
 
size_t get_nz () const
 
double spacing_x () const
 The spacing in each of directions.
 
double spacing_y () const
 
double spacing_z () const
 
Point get_origin () const
 
void set_nx (size_t nx)
 Set the size of the grid.
 
void set_ny (size_t ny)
 
void set_nz (size_t nz)
 
Transform transform () const
 Get the underlying transform.
 
void set_originally_node_centered (bool originally_node_centered)
 This is needed when this value needs to be copied from one grid transform to another.
 
bool get_originally_node_centered () const
 
double get_diagonal_length () const
 
- Public Member Functions inherited from Core::Transform
 Transform (const Transform &)
 
 Transform (const TransformF &)
 
 Transform (const Point &, const Vector &, const Vector &, const Vector &)
 
Transformoperator= (const Transform &copy)
 
Transformoperator= (const TransformF &copy)
 
void load_identity ()
 
void load_basis (const Point &, const Vector &, const Vector &, const Vector &)
 
void load_frame (const Vector &, const Vector &, const Vector &)
 
void load_matrix (const Matrix &m)
 
Transform get_inverse () const
 
void post_transform (const Transform &)
 
void pre_transform (const Transform &)
 
void post_mult_matrix (const Matrix &m)
 
void pre_mult_matrix (const Matrix &m)
 
void pre_permute (int xmap, int ymap, int zmap)
 
void post_permute (int xmap, int ymap, int zmap)
 
void pre_scale (const Vector &)
 
void post_scale (const Vector &)
 
void pre_shear (const Vector &, const Plane &)
 
void post_shear (const Vector &, const Plane &)
 
void pre_rotate (double, const Vector &axis)
 
void post_rotate (double, const Vector &axis)
 
void pre_translate (const Vector &)
 
void post_translate (const Vector &)
 
bool rotate (const Vector &from, const Vector &to)
 
const Matrixget_matrix () const
 
void get (double *data) const
 
void set (const double *data)
 
Point project (const Point &p) const
 
Vector project (const Vector &p) const
 
PointF project (const PointF &p) const
 
VectorF project (const VectorF &p) const
 
bool operator== (const Transform &) const
 
bool operator!= (const Transform &) const
 
bool is_axis_aligned () const
 

Static Public Member Functions

static void AlignToCanonicalCoordinates (const GridTransform &src_transform, std::vector< int > &permutation, GridTransform &dst_transform)
 
- Static Public Member Functions inherited from Core::Transform
static void BuildPermuteMatrix (Matrix &m, int xmap, int ymap, int zmap, bool pre)
 
static void BuildRotateMatrix (Matrix &m, double angle, const Vector &axis)
 
static void BuildShearMatrix (Matrix &m, const Vector &s, const Plane &p)
 
static void BuildScaleMatrix (Matrix &m, const Vector &v)
 
static void BuildTranslateMatrix (Matrix &m, const Vector &v)
 
static void BuildViewMatrix (Matrix &m, const Point &eyep, const Point &lookat, const Vector &up)
 
static void BuildPerspectiveMatrix (Matrix &m, double fovy, double aspect, double znear, double zfar)
 
static void BuildOrthoMatrix (Matrix &m, double left, double right, double bottom, double top, double nearVal, double farVal)
 
static void BuildOrtho2DMatrix (Matrix &m, double left, double right, double bottom, double top)
 

Static Public Attributes

static const Vector X_AXIS
 
static const Vector Y_AXIS
 
static const Vector Z_AXIS
 
static const Point DEFAULT_ORIGIN
 
- Static Public Attributes inherited from Core::Transform
static const int TRANSFORM_LENGTH = 16
 

Additional Inherited Members

- Protected Attributes inherited from Core::Transform
Matrix mat_
 

Member Function Documentation

bool Core::GridTransform::get_originally_node_centered ( ) const
inline

Returns true if the volume was originally node-centered or unknown. Returns true if the volume was originally specified as cell-centered.


The documentation for this class was generated from the following files: