My Project
Public Member Functions | Public Attributes | List of all members
BaseObject Class Referenceabstract

Base object. Virtual class. No realisation. More...

#include "model/baseobject.h"

Inheritance diagram for BaseObject:
Inheritance graph
[legend]

Public Member Functions

virtual void modificate (Modification *modification, Vertex *center=nullptr)=0
 
virtual bool isVertex ()
 

Public Attributes

int ID
 

Detailed Description

Base object. Virtual class. No realisation.

Parent of visible scene objects

Definition at line 23 of file baseobject.h.

Member Function Documentation

§ isVertex()

virtual bool BaseObject::isVertex ( )
inlinevirtual

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, false in other case

Reimplemented in Vertex.

Definition at line 39 of file baseobject.h.

Here is the caller graph for this function:

§ modificate()

virtual void BaseObject::modificate ( Modification modification,
Vertex center = nullptr 
)
pure virtual

Modificate object`s coordinates (rotation/zoom etc)

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

Implemented in Brick, Vertex, Composite, and Normal.

Here is the caller graph for this function:

Member Data Documentation

§ ID

int BaseObject::ID

Different meanings: In composite - get highest ID of objects. In brick - get ID of this brick.

Definition at line 46 of file baseobject.h.


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