My Project
Public Member Functions | Public Attributes | List of all members
Face Class Reference

Define face consisting 3 links to vetices. More...

#include "model/face.h"

Collaboration diagram for Face:
Collaboration graph
[legend]

Public Member Functions

 Face ()
 
 Face (int A, int nA, int B, int nB, int C, int nC)
 
 Face (const Face &other)
 
 Face (Face &&other)
 
 ~Face ()
 
Faceoperator= (const Face &face)
 
int A ()
 
int B ()
 
int C ()
 
int nA ()
 
int nB ()
 
int nC ()
 
int getVertex ()
 
int getNextVertex ()
 
int getNormal ()
 
int getNextNormal ()
 

Public Attributes

vector< int > Vertices
 
vector< int > Normals
 

Detailed Description

Define face consisting 3 links to vetices.

Contains links to verices

Definition at line 25 of file face.h.

Constructor & Destructor Documentation

§ Face() [1/4]

Face::Face ( )

Emty constructor. Fills links with zero values.

Definition at line 5 of file face.cpp.

§ Face() [2/4]

Face::Face ( int  A,
int  nA,
int  B,
int  nB,
int  C,
int  nC 
)

Constructor fills coordinates with user`s values

Parameters
[in]Afirst link of face
[in]Bsecond link of face
[in]Cthird link of face

Definition at line 20 of file face.cpp.

§ Face() [3/4]

Face::Face ( const Face other)

Constructor copy

Parameters
[in]otherFace object to copy

Definition at line 33 of file face.cpp.

§ Face() [4/4]

Face::Face ( Face &&  other)

Constructor transfer

Parameters
[in]otherVertex object to transfer

Definition at line 41 of file face.cpp.

§ ~Face()

Face::~Face ( )

Destructor fills links with zero values

Definition at line 49 of file face.cpp.

Member Function Documentation

§ A()

int Face::A ( )

Get first link of vertex

Returns
first link from array

Definition at line 62 of file face.cpp.

Here is the caller graph for this function:

§ B()

int Face::B ( )

Get second link of vertex

Returns
second link from array

Definition at line 67 of file face.cpp.

Here is the caller graph for this function:

§ C()

int Face::C ( )

Get third link of vertex

Returns
third link from array

Definition at line 72 of file face.cpp.

Here is the caller graph for this function:

§ getNextNormal()

int Face::getNextNormal ( )

Get next link of normal

Returns
next link from array

Definition at line 112 of file face.cpp.

Here is the caller graph for this function:

§ getNextVertex()

int Face::getNextVertex ( )

Get next link of vertex

Returns
next link from array

Definition at line 97 of file face.cpp.

§ getNormal()

int Face::getNormal ( )

Get current link of normal

Returns
current link from array

Definition at line 107 of file face.cpp.

Here is the caller graph for this function:

§ getVertex()

int Face::getVertex ( )

Get current link of vertex

Returns
current link from array

Definition at line 92 of file face.cpp.

§ nA()

int Face::nA ( )

Get first link of normal

Returns
first link from array

Definition at line 77 of file face.cpp.

§ nB()

int Face::nB ( )

Get second link of normal

Returns
second link from array

Definition at line 82 of file face.cpp.

§ nC()

int Face::nC ( )

Get third link of normal

Returns
third link from array

Definition at line 87 of file face.cpp.

§ operator=()

Face & Face::operator= ( const Face face)

Copies incoming face.

Parameters
[in]faceSource face to copy.
Returns
Link to this object.

Definition at line 53 of file face.cpp.

Member Data Documentation

§ Normals

vector<int> Face::Normals

Links array

Definition at line 126 of file face.h.

§ Vertices

vector<int> Face::Vertices

Links array

Definition at line 125 of file face.h.


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