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.
All Classes Namespaces Functions Variables Typedefs Enumerator Friends
Public Member Functions | Static Public Attributes | List of all members
Core::Measurement Class Reference

Public Member Functions

 Measurement (const std::string &name, const std::string &comment, const Point &p0, const Point &p1, const Color &color, bool visible)
 
bool get_visible () const
 Get whether this measurement is visible.
 
void set_visible (bool visible)
 Set whether this measurement is visible. User-editable.
 
std::string get_name () const
 Get short name to be rendered above measurement line.
 
void set_name (std::string name)
 Set short name to be rendered above measurement line.
 
double get_length () const
 Get length of measurement in world units.
 
void set_length (double length)
 
std::string get_comment () const
 
void set_comment (std::string comment)
 
bool get_point (int index, Point &pt) const
 Get 3D world coordinate of point at given index (0 or 1)
 
bool set_point (int index, const Point &pt)
 Set 3D world coordinate of point at given index (0 or 1)
 
void get_color (Color &color) const
 
void set_color (const Color &color)
 
bool operator== (const Measurement &) const
 
bool operator!= (const Measurement &) const
 

Static Public Attributes

static const std::string COMMENT_DELIMITER_C = " COMMENT_END]]"
 
static const Color DEFAULT_COLOR_C = Color( 1.0f, 1.0f, 0.0f )
 
static const std::string REGEX_VALIDATOR_C
 

Member Function Documentation

void Core::Measurement::set_comment ( std::string  comment)

Set user-editable description of measurement. May contain any characters including line breaks.

void Core::Measurement::set_length ( double  length)

Set length of measurement in world units. Moves second point to specified distance along vector between points.


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