Public Member Functions | Public Attributes
osl_edge Class Reference

#include <osl_edge.h>

Inheritance diagram for osl_edge:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 osl_edge (int n, osl_vertex *v1, osl_vertex *v2)
 osl_edge (osl_edgel_chain const &, osl_vertex *v1, osl_vertex *v2)
 ~osl_edge ()
osl_vertexGetV1 () const
osl_vertexGetV2 () const
void set_v1 (osl_vertex *newv)
void set_v2 (osl_vertex *newv)
float GetStartX () const
float GetStartY () const
float GetEndX () const
float GetEndY () const
void SetStartX (float v)
void SetStartY (float v)
void SetStart (float x, float y)
void SetEndX (float v)
void SetEndY (float v)
void SetEnd (float x, float y)
void SetId (int)
int GetId () const
void stash_add (char const *name, void const *data, void(*dtor)(void *)=0)
 add another stash under that name.
void stash_replace (char const *name, void const *data, void(*dtor)(void *)=0)
 replace first stash ith given name. the old dtor is not called.
void * stash_retrieve (char const *name) const
 return first stash with given name, 0 if none.
void * stash_remove (char const *name)
 remove first stash with given name. the dtor is not called.
void ref ()
void unref ()
int get_references () const
bool is_referenced () const
void SetLength (unsigned int)
float GetGrad (unsigned int i) const
float * GetGrad () const
float GetTheta (unsigned int i) const
float * GetTheta () const
float GetX (unsigned int i) const
float * GetX () const
float GetY (unsigned int i) const
float * GetY () const
void SetGrad (float v, unsigned int i)
void SetTheta (float v, unsigned int i)
void SetX (float v, unsigned int i)
void SetY (float v, unsigned int i)
unsigned int size () const
void write_ascii (vcl_ostream &) const
void read_ascii (vcl_istream &)

Public Attributes

osl_vertexv1
osl_vertexv2
int id
unsigned int n
float * x
float * y
float * grad
float * theta

Detailed Description

Definition at line 14 of file osl_edge.h.


Constructor & Destructor Documentation

osl_edge::osl_edge ( int  n,
osl_vertex v1,
osl_vertex v2 
)

Definition at line 15 of file osl_edge.cxx.

osl_edge::osl_edge ( osl_edgel_chain const &  ec,
osl_vertex v1,
osl_vertex v2 
)

Definition at line 27 of file osl_edge.cxx.

osl_edge::~osl_edge ( )

Definition at line 39 of file osl_edge.cxx.


Member Function Documentation

float osl_edge::GetEndX ( ) const

Definition at line 74 of file osl_edge.cxx.

float osl_edge::GetEndY ( ) const

Definition at line 75 of file osl_edge.cxx.

float osl_edgel_chain::GetGrad ( unsigned int  i) const [inherited]

Definition at line 64 of file osl_edgel_chain.cxx.

float * osl_edgel_chain::GetGrad ( ) const [inherited]

Definition at line 65 of file osl_edgel_chain.cxx.

int osl_topology_base::GetId ( ) const [inherited]

Definition at line 89 of file osl_topology.cxx.

float osl_edge::GetStartX ( ) const

Definition at line 71 of file osl_edge.cxx.

float osl_edge::GetStartY ( ) const

Definition at line 72 of file osl_edge.cxx.

float osl_edgel_chain::GetTheta ( unsigned int  i) const [inherited]

Definition at line 66 of file osl_edgel_chain.cxx.

float * osl_edgel_chain::GetTheta ( ) const [inherited]

Definition at line 67 of file osl_edgel_chain.cxx.

osl_vertex* osl_edge::GetV1 ( ) const [inline]

Definition at line 25 of file osl_edge.h.

osl_vertex* osl_edge::GetV2 ( ) const [inline]

Definition at line 26 of file osl_edge.h.

float osl_edgel_chain::GetX ( unsigned int  i) const [inherited]

Definition at line 68 of file osl_edgel_chain.cxx.

float * osl_edgel_chain::GetX ( ) const [inherited]

Definition at line 69 of file osl_edgel_chain.cxx.

float osl_edgel_chain::GetY ( unsigned int  i) const [inherited]

Definition at line 70 of file osl_edgel_chain.cxx.

float * osl_edgel_chain::GetY ( ) const [inherited]

Definition at line 71 of file osl_edgel_chain.cxx.

void osl_edgel_chain::read_ascii ( vcl_istream &  is) [inherited]

Definition at line 93 of file osl_edgel_chain.cxx.

void osl_edge::set_v1 ( osl_vertex newv)

Definition at line 48 of file osl_edge.cxx.

void osl_edge::set_v2 ( osl_vertex newv)

Definition at line 59 of file osl_edge.cxx.

void osl_edge::SetEnd ( float  x,
float  y 
)
void osl_edge::SetEndX ( float  v)

Definition at line 80 of file osl_edge.cxx.

void osl_edge::SetEndY ( float  v)

Definition at line 81 of file osl_edge.cxx.

void osl_edgel_chain::SetGrad ( float  v,
unsigned int  i 
) [inherited]

Definition at line 72 of file osl_edgel_chain.cxx.

void osl_topology_base::SetId ( int  v) [inherited]

Definition at line 87 of file osl_topology.cxx.

void osl_edgel_chain::SetLength ( unsigned int  nn) [inherited]

Definition at line 78 of file osl_edgel_chain.cxx.

void osl_edge::SetStart ( float  x,
float  y 
)
void osl_edge::SetStartX ( float  v)

Definition at line 77 of file osl_edge.cxx.

void osl_edge::SetStartY ( float  v)

Definition at line 78 of file osl_edge.cxx.

void osl_edgel_chain::SetTheta ( float  v,
unsigned int  i 
) [inherited]

Definition at line 73 of file osl_edgel_chain.cxx.

void osl_edgel_chain::SetX ( float  v,
unsigned int  i 
) [inherited]

Definition at line 74 of file osl_edgel_chain.cxx.

void osl_edgel_chain::SetY ( float  v,
unsigned int  i 
) [inherited]

Definition at line 75 of file osl_edgel_chain.cxx.

unsigned int osl_edgel_chain::size ( ) const [inherited]

Definition at line 76 of file osl_edgel_chain.cxx.

void osl_topology_base::stash_add ( char const *  name,
void const *  data,
void(*)(void *)  dtor = 0 
) [inherited]

add another stash under that name.

Definition at line 33 of file osl_topology.cxx.

void * osl_topology_base::stash_remove ( char const *  name) [inherited]

remove first stash with given name. the dtor is not called.

Definition at line 65 of file osl_topology.cxx.

void osl_topology_base::stash_replace ( char const *  name,
void const *  data,
void(*)(void *)  dtor = 0 
) [inherited]

replace first stash ith given name. the old dtor is not called.

Definition at line 41 of file osl_topology.cxx.

void * osl_topology_base::stash_retrieve ( char const *  name) const [inherited]

return first stash with given name, 0 if none.

Definition at line 57 of file osl_topology.cxx.

void osl_edgel_chain::write_ascii ( vcl_ostream &  os) const [inherited]

Definition at line 86 of file osl_edgel_chain.cxx.


Member Data Documentation

float * osl_edgel_chain::grad [inherited]

Definition at line 17 of file osl_edgel_chain.h.

int osl_topology_base::id [inherited]

Definition at line 39 of file osl_topology.h.

unsigned int osl_edgel_chain::n [inherited]

Definition at line 16 of file osl_edgel_chain.h.

float * osl_edgel_chain::theta [inherited]

Definition at line 17 of file osl_edgel_chain.h.

Definition at line 18 of file osl_edge.h.

Definition at line 18 of file osl_edge.h.

float* osl_edgel_chain::x [inherited]

Definition at line 17 of file osl_edgel_chain.h.

float * osl_edgel_chain::y [inherited]

Definition at line 17 of file osl_edgel_chain.h.


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