#include <base_old.h>
Public Types | |
typedef EDGE_TYPE | BaseEdgeType |
The base type of the segment. | |
typedef Box3< ScalarType > | BoxType |
The bounding box type. | |
typedef Point3< ScalarType > | CoordType |
The type of the the vertex coordinate. | |
typedef SVTYPE::ScalarType | ScalarType |
The scalar type derived from the vertex. | |
typedef SVTYPE | VertexType |
The vertex type. | |
Public Member Functions | |
CoordType | Barycenter () const |
EDGE_TYPE (VertexType *v0, VertexType *v1) | |
EDGE_TYPE () | |
Default Empty Costructor. | |
void | GetBBox (BoxType &bb) |
bool | InterpolationParameters (const CoordType &bq, typename VertexType::ScalarType &a, ScalarType &_b) const |
ScalarType | Length () const |
Return the DOUBLE of the area of the face. | |
bool | operator== (const EDGENAME &f) const |
operator to compare two edges | |
void | Set (VertexType *v0, VertexType *v1) |
Costructor. | |
Colors | |
const Color4b | C () const |
Color4b & | C () |
Normal | |
const CoordType | cN () const |
Return the reference of the normal to the face (if __VCGLIB_EDGE_FN is defined). | |
const CoordType & | N () const |
Return the reference of the normal to the face (if __VCGLIB_EDGE_FN is defined). | |
CoordType & | N () |
Return the reference of the normal to the face (if __VCGLIB_EDGE_FN is defined). | |
Adjacency | |
const char & | EEi (const int j) const |
char & | EEi (const int j) |
const EDGENAME *const & | EEp (const int j) const |
EDGENAME *& | EEp (const int j) |
const EDGENAME *const & | EEp1 (const int j) const |
EDGENAME *& | EEp1 (const int j) |
const EDGENAME *const & | UberEEp (const int j) const |
EDGENAME *& | UberEEp (const int j) |
const char & | UberZ (const int j) const |
char & | UberZ (const int j) |
const char & | VEi (const int j) const |
char & | VEi (const int j) |
const EDGENAME *const & | VEp (const int j) const |
EDGENAME *& | VEp (const int j) |
Mark | |
const int & | IMark () const |
int & | IMark () |
void | InitIMark () |
Initialize the imark system of the face. | |
Quality | |
const float & | Q () const |
float & | Q () |
Static Public Member Functions | |
static EDGE_TYPE | OrderedEdge (VertexType *v0, VertexType *v1) |
Reflection Functions | |
Static functions that give information about the current vertex type. Reflection is a mechanism making it possible to investigate yourself. Reflection is used to investigate format of objects at runtime, invoke methods and access fields of these objects. Here we provide static const functions that are resolved at compile time and they give information about the data (normal, color etc.) supported by the current vertex type. | |
static bool | HasEdgeColor () |
static bool | HasEdgeMark () |
static bool | HasEdgeNormal () |
static bool | HasEdgeQuality () |
static bool | HasEEAdjacency () |
static bool | HasVEAdjacency () |
Flags | |
| |
enum | { DELETED = 0x00000001, NOTREAD = 0x00000002, NOTWRITE = 0x00000004, SELECTED = 0x00000020, BORDER0 = 0x00000040, BORDER1 = 0x00000080, USER0 = 0x00040000 } |
This are the _flags of face, the default value is 0. More... | |
void | ClearB (int i) |
This function clear edge as Border on a given side. | |
void | ClearD () |
This function mark the face as not deleted. | |
void | ClearFlags () |
void | ClearS () |
This funcion execute the inverse operation of SetS(). | |
void | ClearUserBit (int userBit) |
This function clear the given user bit. | |
const int & | Flags () const |
int & | Flags () |
Return the _flags. | |
bool | IsB (int i) const |
This function checks if the edge is Border on a given side. | |
bool | IsD () const |
This function checks if the face is deleted. | |
bool | IsS () const |
This function checks if the face is selected. | |
bool | IsUserBit (int userBit) |
This function checks if the given user bit is true. | |
void | SetB (int i) |
This function set edge as Border on a given side. | |
void | SetD () |
This function mark the face as deleted. | |
void | SetS () |
This function select the face. | |
void | SetUserBit (int userBit) |
This function set the given user bit. | |
const int | UberFlags () const |
int & | UberFlags () |
Ritorna il _flags senza effettuare alcun controllo sui relativi bit. | |
static bool | DeleteBitFlag (int bitval) |
static int & | LastBitFlag () |
static int | NewBitFlag () |
Vertex Pointer | |
| |
VertexType * | v [2] |
Vector of vertex pointer incident in the face. | |
const CoordType & | cP (const int j) const |
const CoordType & | cP0 (const int j) const |
const CoordType & | cP1 (const int j) const |
const SVTYPE *const & | cV (const int j) const |
const SVTYPE *const & | cV0 (const int j) const |
const SVTYPE *const & | cV1 (const int j) const |
const CoordType & | P (const int j) const |
CoordType & | P (const int j) |
const CoordType & | P0 (const int j) const |
CoordType & | P0 (const int j) |
Shortcut per accedere ai punti delle facce. | |
const CoordType & | P1 (const int j) const |
CoordType & | P1 (const int j) |
const SVTYPE *const & | UberV (const int j) const |
SVTYPE *& | UberV (const int j) |
const SVTYPE *const & | V (const int j) const |
SVTYPE *& | V (const int j) |
const SVTYPE *const & | V0 (const int j) const |
SVTYPE *& | V0 (const int j) |
const SVTYPE *const & | V1 (const int j) const |
SVTYPE *& | V1 (const int j) |
Definition at line 81 of file edge/base_old.h.
typedef EDGE_TYPE vcg::EDGE_TYPE< EDGENAME, SVTYPE, TCTYPE >::BaseEdgeType |
The base type of the segment.
Definition at line 85 of file edge/base_old.h.
typedef Box3<ScalarType> vcg::EDGE_TYPE< EDGENAME, SVTYPE, TCTYPE >::BoxType |
The bounding box type.
Definition at line 94 of file edge/base_old.h.
typedef Point3< ScalarType > vcg::EDGE_TYPE< EDGENAME, SVTYPE, TCTYPE >::CoordType |
The type of the the vertex coordinate.
Definition at line 91 of file edge/base_old.h.
typedef SVTYPE::ScalarType vcg::EDGE_TYPE< EDGENAME, SVTYPE, TCTYPE >::ScalarType |
The scalar type derived from the vertex.
Definition at line 87 of file edge/base_old.h.
typedef SVTYPE vcg::EDGE_TYPE< EDGENAME, SVTYPE, TCTYPE >::VertexType |
The vertex type.
Definition at line 89 of file edge/base_old.h.
anonymous enum |
This are the _flags of face, the default value is 0.
Definition at line 568 of file edge/base_old.h.
vcg::EDGE_TYPE< EDGENAME, SVTYPE, TCTYPE >::EDGE_TYPE | ( | ) | [inline] |
Default Empty Costructor.
Definition at line 97 of file edge/base_old.h.
vcg::EDGE_TYPE< EDGENAME, SVTYPE, TCTYPE >::EDGE_TYPE | ( | VertexType * | v0, | |
VertexType * | v1 | |||
) | [inline] |
Definition at line 99 of file edge/base_old.h.
CoordType vcg::EDGE_TYPE< EDGENAME, SVTYPE, TCTYPE >::Barycenter | ( | ) | const [inline] |
Definition at line 859 of file edge/base_old.h.
const Color4b vcg::EDGE_TYPE< EDGENAME, SVTYPE, TCTYPE >::C | ( | ) | const [inline] |
Definition at line 300 of file edge/base_old.h.
Color4b& vcg::EDGE_TYPE< EDGENAME, SVTYPE, TCTYPE >::C | ( | ) | [inline] |
Definition at line 290 of file edge/base_old.h.
void vcg::EDGE_TYPE< EDGENAME, SVTYPE, TCTYPE >::ClearB | ( | int | i | ) | [inline] |
This function clear edge as Border on a given side.
Definition at line 708 of file edge/base_old.h.
void vcg::EDGE_TYPE< EDGENAME, SVTYPE, TCTYPE >::ClearD | ( | ) | [inline] |
This function mark the face as not deleted.
Definition at line 665 of file edge/base_old.h.
void vcg::EDGE_TYPE< EDGENAME, SVTYPE, TCTYPE >::ClearFlags | ( | ) | [inline] |
Definition at line 604 of file edge/base_old.h.
void vcg::EDGE_TYPE< EDGENAME, SVTYPE, TCTYPE >::ClearS | ( | ) | [inline] |
This funcion execute the inverse operation of SetS().
Definition at line 687 of file edge/base_old.h.
void vcg::EDGE_TYPE< EDGENAME, SVTYPE, TCTYPE >::ClearUserBit | ( | int | userBit | ) | [inline] |
This function clear the given user bit.
Definition at line 729 of file edge/base_old.h.
const CoordType vcg::EDGE_TYPE< EDGENAME, SVTYPE, TCTYPE >::cN | ( | ) | const [inline] |
Return the reference of the normal to the face (if __VCGLIB_EDGE_FN is defined).
Definition at line 233 of file edge/base_old.h.
const CoordType& vcg::EDGE_TYPE< EDGENAME, SVTYPE, TCTYPE >::cP | ( | const int | j | ) | const [inline] |
Definition at line 159 of file edge/base_old.h.
const CoordType& vcg::EDGE_TYPE< EDGENAME, SVTYPE, TCTYPE >::cP0 | ( | const int | j | ) | const [inline] |
Definition at line 181 of file edge/base_old.h.
const CoordType& vcg::EDGE_TYPE< EDGENAME, SVTYPE, TCTYPE >::cP1 | ( | const int | j | ) | const [inline] |
Definition at line 182 of file edge/base_old.h.
const SVTYPE* const& vcg::EDGE_TYPE< EDGENAME, SVTYPE, TCTYPE >::cV | ( | const int | j | ) | const [inline] |
Definition at line 138 of file edge/base_old.h.
const SVTYPE* const& vcg::EDGE_TYPE< EDGENAME, SVTYPE, TCTYPE >::cV0 | ( | const int | j | ) | const [inline] |
Definition at line 173 of file edge/base_old.h.
const SVTYPE* const& vcg::EDGE_TYPE< EDGENAME, SVTYPE, TCTYPE >::cV1 | ( | const int | j | ) | const [inline] |
Definition at line 174 of file edge/base_old.h.
static bool vcg::EDGE_TYPE< EDGENAME, SVTYPE, TCTYPE >::DeleteBitFlag | ( | int | bitval | ) | [inline, static] |
Definition at line 594 of file edge/base_old.h.
const char& vcg::EDGE_TYPE< EDGENAME, SVTYPE, TCTYPE >::EEi | ( | const int | j | ) | const [inline] |
Definition at line 434 of file edge/base_old.h.
char& vcg::EDGE_TYPE< EDGENAME, SVTYPE, TCTYPE >::EEi | ( | const int | j | ) | [inline] |
Return the index that the face have in the j-th adjacent face.
j | Index of the edge. |
Definition at line 422 of file edge/base_old.h.
const EDGENAME* const& vcg::EDGE_TYPE< EDGENAME, SVTYPE, TCTYPE >::EEp | ( | const int | j | ) | const [inline] |
Definition at line 354 of file edge/base_old.h.
EDGENAME* & vcg::EDGE_TYPE< EDGENAME, SVTYPE, TCTYPE >::EEp | ( | const int | j | ) | [inline] |
Return the pointer to the j-th adjacent edge.
j | Index of the edge. |
Definition at line 342 of file edge/base_old.h.
const EDGENAME* const& vcg::EDGE_TYPE< EDGENAME, SVTYPE, TCTYPE >::EEp1 | ( | const int | j | ) | const [inline] |
Definition at line 366 of file edge/base_old.h.
EDGENAME* & vcg::EDGE_TYPE< EDGENAME, SVTYPE, TCTYPE >::EEp1 | ( | const int | j | ) | [inline] |
Definition at line 365 of file edge/base_old.h.
const int& vcg::EDGE_TYPE< EDGENAME, SVTYPE, TCTYPE >::Flags | ( | ) | const [inline] |
Definition at line 621 of file edge/base_old.h.
int& vcg::EDGE_TYPE< EDGENAME, SVTYPE, TCTYPE >::Flags | ( | ) | [inline] |
Return the _flags.
Definition at line 611 of file edge/base_old.h.
void vcg::EDGE_TYPE< EDGENAME, SVTYPE, TCTYPE >::GetBBox | ( | BoxType & | bb | ) | [inline] |
Definition at line 741 of file edge/base_old.h.
static bool vcg::EDGE_TYPE< EDGENAME, SVTYPE, TCTYPE >::HasEdgeColor | ( | ) | [inline, static] |
Definition at line 768 of file edge/base_old.h.
static bool vcg::EDGE_TYPE< EDGENAME, SVTYPE, TCTYPE >::HasEdgeMark | ( | ) | [inline, static] |
Definition at line 789 of file edge/base_old.h.
static bool vcg::EDGE_TYPE< EDGENAME, SVTYPE, TCTYPE >::HasEdgeNormal | ( | ) | [inline, static] |
Definition at line 754 of file edge/base_old.h.
static bool vcg::EDGE_TYPE< EDGENAME, SVTYPE, TCTYPE >::HasEdgeQuality | ( | ) | [inline, static] |
Definition at line 761 of file edge/base_old.h.
static bool vcg::EDGE_TYPE< EDGENAME, SVTYPE, TCTYPE >::HasEEAdjacency | ( | ) | [inline, static] |
Definition at line 775 of file edge/base_old.h.
static bool vcg::EDGE_TYPE< EDGENAME, SVTYPE, TCTYPE >::HasVEAdjacency | ( | ) | [inline, static] |
Definition at line 782 of file edge/base_old.h.
const int& vcg::EDGE_TYPE< EDGENAME, SVTYPE, TCTYPE >::IMark | ( | ) | const [inline] |
Definition at line 535 of file edge/base_old.h.
int& vcg::EDGE_TYPE< EDGENAME, SVTYPE, TCTYPE >::IMark | ( | ) | [inline] |
Definition at line 523 of file edge/base_old.h.
void vcg::EDGE_TYPE< EDGENAME, SVTYPE, TCTYPE >::InitIMark | ( | ) | [inline] |
Initialize the imark system of the face.
Definition at line 548 of file edge/base_old.h.
bool vcg::EDGE_TYPE< EDGENAME, SVTYPE, TCTYPE >::InterpolationParameters | ( | const CoordType & | bq, | |
typename VertexType::ScalarType & | a, | |||
ScalarType & | _b | |||
) | const [inline] |
Calcola i coefficienti della combinazione convessa.
bq | Punto appartenente alla faccia | |
a | Valore di ritorno per il vertice V(0) | |
b | Valore di ritorno per il vertice V(1) | |
_c | Valore di ritorno per il vertice V(2) |
Definition at line 813 of file edge/base_old.h.
bool vcg::EDGE_TYPE< EDGENAME, SVTYPE, TCTYPE >::IsB | ( | int | i | ) | const [inline] |
This function checks if the edge is Border on a given side.
Definition at line 694 of file edge/base_old.h.
bool vcg::EDGE_TYPE< EDGENAME, SVTYPE, TCTYPE >::IsD | ( | ) | const [inline] |
This function checks if the face is deleted.
Definition at line 651 of file edge/base_old.h.
bool vcg::EDGE_TYPE< EDGENAME, SVTYPE, TCTYPE >::IsS | ( | ) | const [inline] |
This function checks if the face is selected.
Definition at line 673 of file edge/base_old.h.
bool vcg::EDGE_TYPE< EDGENAME, SVTYPE, TCTYPE >::IsUserBit | ( | int | userBit | ) | [inline] |
This function checks if the given user bit is true.
Definition at line 715 of file edge/base_old.h.
static int& vcg::EDGE_TYPE< EDGENAME, SVTYPE, TCTYPE >::LastBitFlag | ( | ) | [inline, static] |
Definition at line 584 of file edge/base_old.h.
ScalarType vcg::EDGE_TYPE< EDGENAME, SVTYPE, TCTYPE >::Length | ( | ) | const [inline] |
Return the DOUBLE of the area of the face.
Definition at line 854 of file edge/base_old.h.
const CoordType& vcg::EDGE_TYPE< EDGENAME, SVTYPE, TCTYPE >::N | ( | ) | const [inline] |
Return the reference of the normal to the face (if __VCGLIB_EDGE_FN is defined).
Definition at line 224 of file edge/base_old.h.
CoordType& vcg::EDGE_TYPE< EDGENAME, SVTYPE, TCTYPE >::N | ( | ) | [inline] |
Return the reference of the normal to the face (if __VCGLIB_EDGE_FN is defined).
Definition at line 214 of file edge/base_old.h.
static int vcg::EDGE_TYPE< EDGENAME, SVTYPE, TCTYPE >::NewBitFlag | ( | ) | [inline, static] |
Definition at line 589 of file edge/base_old.h.
bool vcg::EDGE_TYPE< EDGENAME, SVTYPE, TCTYPE >::operator== | ( | const EDGENAME & | f | ) | const [inline] |
operator to compare two edges
Definition at line 800 of file edge/base_old.h.
static EDGE_TYPE vcg::EDGE_TYPE< EDGENAME, SVTYPE, TCTYPE >::OrderedEdge | ( | VertexType * | v0, | |
VertexType * | v1 | |||
) | [inline, static] |
Definition at line 101 of file edge/base_old.h.
const CoordType& vcg::EDGE_TYPE< EDGENAME, SVTYPE, TCTYPE >::P | ( | const int | j | ) | const [inline] |
Definition at line 153 of file edge/base_old.h.
CoordType& vcg::EDGE_TYPE< EDGENAME, SVTYPE, TCTYPE >::P | ( | const int | j | ) | [inline] |
Definition at line 146 of file edge/base_old.h.
const CoordType& vcg::EDGE_TYPE< EDGENAME, SVTYPE, TCTYPE >::P0 | ( | const int | j | ) | const [inline] |
Definition at line 179 of file edge/base_old.h.
CoordType& vcg::EDGE_TYPE< EDGENAME, SVTYPE, TCTYPE >::P0 | ( | const int | j | ) | [inline] |
Shortcut per accedere ai punti delle facce.
Definition at line 177 of file edge/base_old.h.
const CoordType& vcg::EDGE_TYPE< EDGENAME, SVTYPE, TCTYPE >::P1 | ( | const int | j | ) | const [inline] |
Definition at line 180 of file edge/base_old.h.
CoordType& vcg::EDGE_TYPE< EDGENAME, SVTYPE, TCTYPE >::P1 | ( | const int | j | ) | [inline] |
Definition at line 178 of file edge/base_old.h.
const float& vcg::EDGE_TYPE< EDGENAME, SVTYPE, TCTYPE >::Q | ( | ) | const [inline] |
Definition at line 266 of file edge/base_old.h.
float& vcg::EDGE_TYPE< EDGENAME, SVTYPE, TCTYPE >::Q | ( | ) | [inline] |
Definition at line 256 of file edge/base_old.h.
void vcg::EDGE_TYPE< EDGENAME, SVTYPE, TCTYPE >::Set | ( | VertexType * | v0, | |
VertexType * | v1 | |||
) | [inline] |
Costructor.
Definition at line 109 of file edge/base_old.h.
void vcg::EDGE_TYPE< EDGENAME, SVTYPE, TCTYPE >::SetB | ( | int | i | ) | [inline] |
This function set edge as Border on a given side.
Definition at line 702 of file edge/base_old.h.
void vcg::EDGE_TYPE< EDGENAME, SVTYPE, TCTYPE >::SetD | ( | ) | [inline] |
This function mark the face as deleted.
Definition at line 659 of file edge/base_old.h.
void vcg::EDGE_TYPE< EDGENAME, SVTYPE, TCTYPE >::SetS | ( | ) | [inline] |
This function select the face.
Definition at line 681 of file edge/base_old.h.
void vcg::EDGE_TYPE< EDGENAME, SVTYPE, TCTYPE >::SetUserBit | ( | int | userBit | ) | [inline] |
This function set the given user bit.
Definition at line 723 of file edge/base_old.h.
const EDGENAME* const& vcg::EDGE_TYPE< EDGENAME, SVTYPE, TCTYPE >::UberEEp | ( | const int | j | ) | const [inline] |
Definition at line 382 of file edge/base_old.h.
EDGENAME* & vcg::EDGE_TYPE< EDGENAME, SVTYPE, TCTYPE >::UberEEp | ( | const int | j | ) | [inline] |
Return the pointer to the j-th adjacent face.
j | Index of the edge. |
Definition at line 371 of file edge/base_old.h.
const int vcg::EDGE_TYPE< EDGENAME, SVTYPE, TCTYPE >::UberFlags | ( | ) | const [inline] |
Definition at line 641 of file edge/base_old.h.
int& vcg::EDGE_TYPE< EDGENAME, SVTYPE, TCTYPE >::UberFlags | ( | ) | [inline] |
Ritorna il _flags senza effettuare alcun controllo sui relativi bit.
Definition at line 631 of file edge/base_old.h.
const SVTYPE* const& vcg::EDGE_TYPE< EDGENAME, SVTYPE, TCTYPE >::UberV | ( | const int | j | ) | const [inline] |
Definition at line 190 of file edge/base_old.h.
SVTYPE* & vcg::EDGE_TYPE< EDGENAME, SVTYPE, TCTYPE >::UberV | ( | const int | j | ) | [inline] |
Definition at line 184 of file edge/base_old.h.
const char& vcg::EDGE_TYPE< EDGENAME, SVTYPE, TCTYPE >::UberZ | ( | const int | j | ) | const [inline] |
Definition at line 463 of file edge/base_old.h.
char& vcg::EDGE_TYPE< EDGENAME, SVTYPE, TCTYPE >::UberZ | ( | const int | j | ) | [inline] |
Return the index that the face have in the j-th adjacent face.
j | Index of the edge. |
Definition at line 449 of file edge/base_old.h.
const SVTYPE* const& vcg::EDGE_TYPE< EDGENAME, SVTYPE, TCTYPE >::V | ( | const int | j | ) | const [inline] |
Definition at line 132 of file edge/base_old.h.
SVTYPE* & vcg::EDGE_TYPE< EDGENAME, SVTYPE, TCTYPE >::V | ( | const int | j | ) | [inline] |
Return the pointer to the j-th vertex of the face.
j | Index of the face vertex. |
Definition at line 125 of file edge/base_old.h.
const SVTYPE* const& vcg::EDGE_TYPE< EDGENAME, SVTYPE, TCTYPE >::V0 | ( | const int | j | ) | const [inline] |
Definition at line 171 of file edge/base_old.h.
SVTYPE* & vcg::EDGE_TYPE< EDGENAME, SVTYPE, TCTYPE >::V0 | ( | const int | j | ) | [inline] |
Return the pointer to the ((j+1)3)-th vertex of the face.
j | Index of the face vertex. |
Definition at line 169 of file edge/base_old.h.
const SVTYPE* const& vcg::EDGE_TYPE< EDGENAME, SVTYPE, TCTYPE >::V1 | ( | const int | j | ) | const [inline] |
Definition at line 172 of file edge/base_old.h.
SVTYPE* & vcg::EDGE_TYPE< EDGENAME, SVTYPE, TCTYPE >::V1 | ( | const int | j | ) | [inline] |
Definition at line 170 of file edge/base_old.h.
const char& vcg::EDGE_TYPE< EDGENAME, SVTYPE, TCTYPE >::VEi | ( | const int | j | ) | const [inline] |
Definition at line 493 of file edge/base_old.h.
char& vcg::EDGE_TYPE< EDGENAME, SVTYPE, TCTYPE >::VEi | ( | const int | j | ) | [inline] |
Definition at line 478 of file edge/base_old.h.
const EDGENAME* const& vcg::EDGE_TYPE< EDGENAME, SVTYPE, TCTYPE >::VEp | ( | const int | j | ) | const [inline] |
Definition at line 406 of file edge/base_old.h.
EDGENAME* & vcg::EDGE_TYPE< EDGENAME, SVTYPE, TCTYPE >::VEp | ( | const int | j | ) | [inline] |
Definition at line 394 of file edge/base_old.h.
VertexType* vcg::EDGE_TYPE< EDGENAME, SVTYPE, TCTYPE >::v[2] [protected] |
Vector of vertex pointer incident in the face.
Definition at line 120 of file edge/base_old.h.