an isocontour class that can be used as range data
![]() | EDGE_TYPE the type of intersection that tells if the vertex lies on a row edge or a column edge and its orientation |
![]() | getNbRows () const return the number of rows of the isocontour |
![]() | getNbColumns () const return the number of columns of the isocontour |
![]() | getSliceNumber () const return the |
![]() | clean (void) delete any IsoscontourPixel (empty isocontour) |
![]() | getFirstSegment () returns an iterator on the segment list |
![]() | getInterface () const returns isocontour interface |
![]() | getLineColor (float &r, float &g, float &b) const Returns the display color of lines |
![]() | getVertexColor (float &r, float &g, float &b) const Returns the display color of vertices |
![]() | getLineWidth () const Returns the width of a line |
![]() | getVertexSize () const Returns the size of a displayed vertex |
![]() | getDisplayVertex () const Returns the vertex display mode |
![]() | getDisplayIsocontour () const Returns the isocontour display mode |
![]() | setLineColor (const float r, const float g, const float b) Sets the display color of lines |
![]() | setVertexColor (const float r, const float g, const float b) Sets the display color of vertices |
![]() | setLineWidth (const float w) Sets the width of a line |
![]() | setVertexSize (const float s) Sets the size of a displayed vertex |
![]() | translate (const Vec2 translate the isocontour |
![]() | rotate (const Rotation2D &r) rotate the isocontour |
![]() | scale (const double s) scale the isocontour |
![]() | redraw (Camera2D *cam) the redraw function |
![]() | updateRadius (const Vec2 returns the isocontour radius given its center |
![]() | updateCenter (Vec2 Returns the isocontour center and weight |
![]() | computeCenter () compute the isocontour center |
![]() | computeRadius () compute the isocontour radius |
![]() | computeClosestDistance (MouseClick& mc) const returns closest distance from mouse click |
![]() | recompute (SliceCamera *cam) callback called when slice shown by the slice-camera has changed |
![]() | constructor
| ||
![]() | Destructor
|
![]() | vertexHashTable the temporary hash table to store |
![]() | nrows the number of rows |
![]() | ncols the number of columns |
![]() | sliceNumber return the slice Number of the isocontour |
![]() | orientation the orientation of the slice |
![]() | defaultHashTableRatio ratio defining the size of the hash table as the percentage of the number of pixels |
![]() | hashTable the hash table used to store isocontour pixels |
![]() | positionArray the array of vertex position |
![]() | nbGlobalVertices the number of global vertices |
![]() | lineColor [3] the current color of a line |
![]() | defaultLineColor [3] the default color of a line |
![]() | lineWidth the current line width for the display of all lines |
![]() | defaultLineWidth the default line width for the display of all lines |
![]() | vertexSize the current vertex size for the display of all vertices |
![]() | defaultVertexSize the deafult vertex size for the display of all vertices |
![]() | vertexColor [3] the current color of a vertex |
![]() | defaultVertexColor [3] the default color of a vertex |
![]() | displayVertex Should the vertices be displayed |
![]() | displayIsocontour Should the isocontour be displayed |
![]() | findIsocontourIntersections () find the isocontour intersection and store then in the hash table |
an isocontour class that can be used as range data
TclScene2D* getScene(void) const
static int list(TclModule *m, int d, char **a)
int vertex[2]
Vec2
constructor
IsocontourSegment(int v1, int v2, Vec2
v2 - the index of the second vertex : this index may be negative if the vertex belong to a isocontour pixel
normal - the normal vector of the segment IsocontourSegment()
destructor
Vec2
int getFirstVertex() const
unsigned int col
unsigned int nbSegments
IsocontourSegment* segmentArray
unsigned int nbVertices
Vec2
constructor
IsocontourPixel(unsigned int _row=0, unsigned int _col=0, unsigned int _nSegments=0, IsocontourSegment *arrayS=0, unsigned int _nVertices=0, Vec2
_col - the column index of the pixel
_nSegments - the number of isocontour segment located in the pixel
array - the array of isocontour segments destructor
unsigned int getRow() const
unsigned int segmentIndex
Isocontour* isocontour
constructor
destructor
void first(void)
bool isAtEnd(void) const
IsocontourSegment* operator)(void)
IsocontourSegment* operator++(void)
IsocontourSegment* operator++(int)
IsocontourSegment* operator--(void)
IsocontourSegment* operator--(int)
class IsocontourVertex
unsigned int row
unsigned int col
Isocontour::EDGE_TYPE edgeType
Vec2
unsigned int index
constructor
IsocontourVertex(unsigned int _row, unsigned int _col, Isocontour::EDGE_TYPE _edgeType, Vec2
_col - the column index of the vertex
_edgeType - on which type of edge the vertex lies on
_position - subpixel position of the vertex Destructor
std::hash_map
unsigned int nrows
unsigned int ncols
unsigned int sliceNumber
SliceCamera::SLICE_ORIENTATION orientation
static const double defaultHashTableRatio
std::hash_map
Vec2
unsigned int nbGlobalVertices
unsigned int getNbRows() const
unsigned int getNbColumns() const
unsigned int getSliceNumber() const
constructor
Isocontour(Scene2D *scene, Inrimage *inr, double _threshold, SliceCamera::SLICE_ORIENTATION orientation, unsigned int sliceNumber)
inr - the volumetric image
_threshold - the threshold of the isocontour
the - orientation of the image slice
the - index of the image slice Destructor
void clean(void)
SegmentIterator getFirstSegment()
TclIsocontour* getInterface() const
float lineColor[3]
static const float defaultLineColor[3]
float lineWidth
static const float defaultLineWidth
float vertexSize
static const float defaultVertexSize
float vertexColor[3]
static const float defaultVertexColor[3]
bool displayVertex
bool displayIsocontour
void getLineColor(float &r, float &g, float &b) const
void getVertexColor(float &r, float &g, float &b) const
float getLineWidth() const
float getVertexSize() const
bool getDisplayVertex() const
bool getDisplayIsocontour() const
void setLineColor(const float r, const float g, const float b)
void setVertexColor(const float r, const float g, const float b)
void setLineWidth(const float w)
void setVertexSize(const float s)
virtual void translate(const Vec2
virtual void rotate(const Rotation2D &r)
virtual void scale(const double s)
virtual void redraw(Camera2D *cam)
virtual double updateRadius(const Vec2
virtual void updateCenter(Vec2
n - updated weight void computeCenter()
void computeRadius()
virtual double computeClosestDistance(MouseClick& mc) const
virtual void recompute(SliceCamera *cam)
void initGraphics()
virtual const char* getTag(void) const
void findIsocontourIntersections()
Isocontour(Scene2D *scene)
void build(Inrimage *inr, double threshold)
threshold - contour isovalue template
threshold - contour isovalue
alphabetic index hierarchy of classes
this page has been generated automatically by doc++
(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de