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

Brick archetecture. More...

#include "model/brick.h"

Inheritance diagram for Brick:
Inheritance graph
[legend]
Collaboration diagram for Brick:
Collaboration graph
[legend]

Public Member Functions

 Brick ()
 
 Brick (const Brick &brick)
 
 Brick (Brick &&brick)
 
 ~Brick ()
 
Brickoperator= (const Brick &brick)
 
void addVertex (Vertex v)
 
void addFace (Face face)
 
void addNormal (Normal normal)
 
int vertexCount ()
 
int facesCount ()
 
virtual void modificate (Modification *modification, Vertex *center) override
 
- Public Member Functions inherited from BaseObject
virtual bool isVertex ()
 

Public Attributes

Vertex center
 
vector< Vertexvertex
 
vector< Vertexsvertex
 
vector< vector< Normal > > VNormal
 
vector< vector< Normal > > sVNormal
 
vector< NormalFNormal
 
vector< Facefaces
 
COLORREF color
 
- Public Attributes inherited from BaseObject
int ID
 

Detailed Description

Brick archetecture.

Provide interface brick values

Definition at line 25 of file brick.h.

Constructor & Destructor Documentation

§ Brick() [1/3]

Brick::Brick ( )

Emty constructor. No action.

Definition at line 6 of file brick.cpp.

§ Brick() [2/3]

Brick::Brick ( const Brick brick)

Constructor. Copies incoming model.

Parameters
[in]brickSource model to copy.

Definition at line 11 of file brick.cpp.

§ Brick() [3/3]

Brick::Brick ( Brick &&  brick)

Constructor. Transfer incoming model.

Parameters
[in]brickSource model to transfer.

Definition at line 23 of file brick.cpp.

§ ~Brick()

Brick::~Brick ( )

Destructor. Clears vertex and faces array.

Definition at line 35 of file brick.cpp.

Member Function Documentation

§ addFace()

void Brick::addFace ( Face  face)

Adds face in model.

Parameters
[in]faceVector of 3 links

Definition at line 64 of file brick.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

§ addNormal()

void Brick::addNormal ( Normal  normal)

Adds normal in model.

Parameters
[in]noramlNormal to face

Definition at line 77 of file brick.cpp.

Here is the caller graph for this function:

§ addVertex()

void Brick::addVertex ( Vertex  v)

Adds vertex in model.

Parameters
[in]vVertex to add in array.

Definition at line 58 of file brick.cpp.

Here is the caller graph for this function:

§ facesCount()

int Brick::facesCount ( )

Amount of faces in model

Returns
Amount of items

Definition at line 87 of file brick.cpp.

Here is the caller graph for this function:

§ modificate()

void Brick::modificate ( Modification modification,
Vertex center 
)
overridevirtual

Modificate coordinates (rotate/zoom etc)

Parameters
[in]modificationModification object

Implements BaseObject.

Definition at line 92 of file brick.cpp.

Here is the call graph for this function:

§ operator=()

Brick & Brick::operator= ( const Brick brick)

Copies incoming model.

Parameters
[in]brickSource model to copy.
Returns
Link to this object.

Definition at line 45 of file brick.cpp.

§ vertexCount()

int Brick::vertexCount ( )

Amount of vertex in model

Returns
Amount of items

Definition at line 82 of file brick.cpp.

Here is the caller graph for this function:

Member Data Documentation

§ center

Vertex Brick::center

Brick center

Definition at line 93 of file brick.h.

§ color

COLORREF Brick::color

Definition at line 105 of file brick.h.

§ faces

vector<Face> Brick::faces

Faces array

Definition at line 103 of file brick.h.

§ FNormal

vector<Normal> Brick::FNormal

Normal to face

Definition at line 101 of file brick.h.

§ svertex

vector<Vertex> Brick::svertex

Vertex array in scene coordinates

Definition at line 96 of file brick.h.

§ sVNormal

vector<vector<Normal> > Brick::sVNormal

Normal to each vertex in scene coordinates

Definition at line 99 of file brick.h.

§ vertex

vector<Vertex> Brick::vertex

Vertex array after modification (rotation, move)

Definition at line 95 of file brick.h.

§ VNormal

vector<vector<Normal> > Brick::VNormal

Normal to each vertex after modification

Definition at line 98 of file brick.h.


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