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

Define vertex consisting 3 double coordinates. More...

#include "model/vertex.h"

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

Public Member Functions

 Vertex ()
 
 Vertex (double X, double Y, double Z)
 
 Vertex (const Vertex &other)
 
 Vertex (Vertex &&other)
 
 ~Vertex ()
 
Vertexoperator= (Vertex other)
 
GVector vector ()
 
Vertex operator* (GMatrix matrix)
 
virtual void modificate (Modification *modification, Vertex *center) override
 
virtual bool isVertex () override
 

Public Attributes

double X
 
double Y
 
double Z
 
- Public Attributes inherited from BaseObject
int ID
 

Detailed Description

Define vertex consisting 3 double coordinates.

Provide interface for vertex coordinates

Definition at line 24 of file vertex.h.

Constructor & Destructor Documentation

§ Vertex() [1/4]

Vertex::Vertex ( )

Emty constructor. Fills coordinates with zero values.

Definition at line 5 of file vertex.cpp.

§ Vertex() [2/4]

Vertex::Vertex ( double  X,
double  Y,
double  Z 
)

Constructor fills coordinates with user`s values

Parameters
[in]XX coordinate of vertex
[in]YY coordinate of vertex
[in]ZZ coordinate of vertex

Definition at line 12 of file vertex.cpp.

§ Vertex() [3/4]

Vertex::Vertex ( const Vertex other)

Constructor copy

Parameters
[in]otherVertex object to copy

Definition at line 19 of file vertex.cpp.

§ Vertex() [4/4]

Vertex::Vertex ( Vertex &&  other)

Constructor transfer

Parameters
[in]otherVertex object to transfer

Definition at line 26 of file vertex.cpp.

§ ~Vertex()

Vertex::~Vertex ( )

Destructor fills coordinates with zero values

Definition at line 33 of file vertex.cpp.

Member Function Documentation

§ isVertex()

virtual bool Vertex::isVertex ( )
inlineoverridevirtual

In modification methods we need to know what kind of object we use: vertex or normal so here we know

Returns
true if object is vertex (it's vertex now)

Reimplemented from BaseObject.

Definition at line 88 of file vertex.h.

§ modificate()

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

Modificate coordinates (rotate/zoom etc)

Parameters
[in]modificationModification object

Implements BaseObject.

Definition at line 54 of file vertex.cpp.

Here is the call graph for this function:

§ operator*()

Vertex Vertex::operator* ( GMatrix  matrix)

Multiply this vertex by matrix

Parameters
[in]matrixMatrix to multiply
Returns
Vertex multiplied by matrix

Definition at line 59 of file vertex.cpp.

§ operator=()

Vertex & Vertex::operator= ( Vertex  other)

Copy vertex

Parameters
[in]otherVertex object to copy

Definition at line 40 of file vertex.cpp.

§ vector()

GVector Vertex::vector ( )

Transform vertex into vector format

Returns
vector

Definition at line 48 of file vertex.cpp.

Member Data Documentation

§ X

double Vertex::X

X coordinate of vertex

Definition at line 90 of file vertex.h.

§ Y

double Vertex::Y

Y coordinate of vertex

Definition at line 91 of file vertex.h.

§ Z

double Vertex::Z

Z coordinate of vertex

Definition at line 92 of file vertex.h.


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