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

Define normal (object container for GVector) More...

#include "model/normal.h"

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

Public Member Functions

 Normal ()
 
 Normal (const GVector &v)
 
 Normal (GVector &&v)
 
 Normal (const Normal &other)
 
 Normal (Normal &&other)
 
 Normal (double X, double Y, double Z, double length)
 
 ~Normal ()
 
Normaloperator= (Normal other)
 
Normal operator+ (const Normal &other)
 
Normal operator- (const Normal &other)
 
Normal operator/ (const double value)
 
Normal operator* (const double value)
 
double & operator[] (const size_t index)
 
const double & operator[] (const size_t index) const
 
Normal operator* (GMatrix matrix)
 
virtual void modificate (Modification *modification, Vertex *center) override
 
- Public Member Functions inherited from GVector
 GVector ()
 
 GVector (double X, double Y, double Z, double hc)
 
 GVector (const GVector &other)
 
 GVector (GVector &&other)
 
 ~GVector ()
 
GVectoroperator= (GVector other)
 
GVector operator+ (const GVector other)
 
GVector operator- (const GVector other)
 
GVector operator/ (const double value)
 
GVector operator* (const double value)
 
double & operator[] (const size_t index)
 
const double & operator[] (const size_t index) const
 
vector< double > getVec () const
 
double length ()
 
GVector normalize ()
 
GVector operator* (GMatrix matrix)
 
bool operator== (const GVector &other) const
 
bool operator!= (const GVector &other) const
 
- Public Member Functions inherited from BaseObject
virtual bool isVertex ()
 

Additional Inherited Members

- Static Public Member Functions inherited from GVector
static GVector cross (GVector first, GVector second)
 
static double scalar (GVector first, GVector second)
 
static double angle (GVector first, GVector second)
 
- Public Attributes inherited from BaseObject
int ID
 

Detailed Description

Define normal (object container for GVector)

Provide interface for geometric vector like base object

Definition at line 24 of file normal.h.

Constructor & Destructor Documentation

§ Normal() [1/6]

Normal::Normal ( )

Definition at line 5 of file normal.cpp.

Here is the caller graph for this function:

§ Normal() [2/6]

Normal::Normal ( const GVector v)

Definition at line 6 of file normal.cpp.

§ Normal() [3/6]

Normal::Normal ( GVector &&  v)

Definition at line 7 of file normal.cpp.

§ Normal() [4/6]

Normal::Normal ( const Normal other)

Definition at line 8 of file normal.cpp.

§ Normal() [5/6]

Normal::Normal ( Normal &&  other)

Definition at line 9 of file normal.cpp.

§ Normal() [6/6]

Normal::Normal ( double  X,
double  Y,
double  Z,
double  length 
)

Definition at line 10 of file normal.cpp.

§ ~Normal()

Normal::~Normal ( )

Definition at line 11 of file normal.cpp.

Member Function Documentation

§ modificate()

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

Modificate object`s coordinates (rotation/zoom etc)

Parameters
[in]modificationType of modification
[in]centerModification center

Implements BaseObject.

Definition at line 54 of file normal.cpp.

Here is the call graph for this function:

§ operator*() [1/2]

Normal Normal::operator* ( const double  value)

Definition at line 33 of file normal.cpp.

Here is the call graph for this function:

§ operator*() [2/2]

Normal Normal::operator* ( GMatrix  matrix)

Definition at line 48 of file normal.cpp.

Here is the call graph for this function:

§ operator+()

Normal Normal::operator+ ( const Normal other)

Definition at line 18 of file normal.cpp.

Here is the call graph for this function:

§ operator-()

Normal Normal::operator- ( const Normal other)

Definition at line 23 of file normal.cpp.

Here is the call graph for this function:

§ operator/()

Normal Normal::operator/ ( const double  value)

Definition at line 28 of file normal.cpp.

Here is the call graph for this function:

§ operator=()

Normal & Normal::operator= ( Normal  other)

Definition at line 13 of file normal.cpp.

Here is the call graph for this function:

§ operator[]() [1/2]

double & Normal::operator[] ( const size_t  index)

Definition at line 38 of file normal.cpp.

§ operator[]() [2/2]

const double & Normal::operator[] ( const size_t  index) const

Definition at line 43 of file normal.cpp.


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