VectorEntity  1.1.0
Medical Data Segmentation Toolkit
Public Member Functions
vctl::MCSphere Class Reference

Analytical description of a sphere (circumsphere of a tetrahedron, triangle, or edge). More...

#include <mcsphere.h>

Inheritance diagram for vctl::MCSphere:
Inheritance graph
[legend]

List of all members.

Public Member Functions

template<class S >
void DeserializeEntity (mds::mod::CChannelSerializer< S > &Reader)
 Reads the sphere data.
void GetCenter (MCPoint3D &_point) const
 Returns center of the sphere.
MCPoint3DGetCenter ()
 Returns center of the sphere.
const MCPoint3DGetCenter () const
double GetRadius () const
 Returns radius of the sphere.
void GetSphere (double &_cx, double &_cy, double &_cz, double &_r) const
 Returns sphere parameters.
void MakeSphereEdge (MCVertex *n1, MCVertex *n2)
 Estimates edge circumsphere.
void MakeSphereTetra (MCVertex *n1, MCVertex *n2, MCVertex *n3, MCVertex *n4)
 Estimates tetrahedron circumsphere.
void MakeSphereTri (MCVertex *n1, MCVertex *n2, MCVertex *n3)
 Estimates triangle circumsphere.
 MCSphere ()
 Default constructor.
template<class S >
void SerializeEntity (mds::mod::CChannelSerializer< S > &Writer)
 Writes the sphere data.
int TestPoint (MCPoint3D &_point)
 Checks position of a given point with respect to the sphere.
 ~MCSphere ()
 Destructor.

Detailed Description

Analytical description of a sphere (circumsphere of a tetrahedron, triangle, or edge).


Constructor & Destructor Documentation

Default constructor.

Destructor.


Member Function Documentation

template<class S >
void vctl::MCSphere::DeserializeEntity ( mds::mod::CChannelSerializer< S > &  Reader) [inline]

Reads the sphere data.

void vctl::MCSphere::GetCenter ( MCPoint3D _point) const [inline]

Returns center of the sphere.

Returns center of the sphere.

double vctl::MCSphere::GetRadius ( ) const [inline]

Returns radius of the sphere.

void vctl::MCSphere::GetSphere ( double _cx,
double _cy,
double _cz,
double _r 
) const [inline]

Returns sphere parameters.

void MCSphere::MakeSphereEdge ( MCVertex n1,
MCVertex n2 
)

Estimates edge circumsphere.

void MCSphere::MakeSphereTetra ( MCVertex n1,
MCVertex n2,
MCVertex n3,
MCVertex n4 
)

Estimates tetrahedron circumsphere.

void MCSphere::MakeSphereTri ( MCVertex n1,
MCVertex n2,
MCVertex n3 
)

Estimates triangle circumsphere.

template<class S >
void vctl::MCSphere::SerializeEntity ( mds::mod::CChannelSerializer< S > &  Writer) [inline]

Writes the sphere data.

Checks position of a given point with respect to the sphere.

  • 1 ... the point lies inside the sphere.
  • 0 ... the point lies directly on the sphere surface.
  • -1 ... outside the sphere.

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