Radium Engine  1.5.20
Loading...
Searching...
No Matches
Ra::Core::Geometry::AbstractGeometry Struct Referenceabstract

#include <Core/Geometry/AbstractGeometry.hpp>

+ Inheritance diagram for Ra::Core::Geometry::AbstractGeometry:
+ Collaboration diagram for Ra::Core::Geometry::AbstractGeometry:

Public Member Functions

 AbstractGeometry (const AbstractGeometry &other)
 
AbstractGeometryoperator= (const AbstractGeometry &other)
 
virtual void clear ()=0
 Erases all data, making the geometry empty.
 
virtual Aabb computeAabb () const =0
 Compute bounding box.
 
Ra::Core::Utils::ObservableVoid & getAabbObservable ()
 

Protected Member Functions

bool isAabbValid () const
 
Core::Aabb getAabb () const
 
void invalidateAabb () const
 
void setAabb (const Core::Aabb &aabb) const
 

Detailed Description

Abstract class for Geometry objects in Radium Core

Warning
: Part of the current proposal for a modular implementation of displayable objects.
Note
We use a struct because all members are public anyway

Definition at line 17 of file AbstractGeometry.hpp.

Constructor & Destructor Documentation

◆ AbstractGeometry()

Ra::Core::Geometry::AbstractGeometry::AbstractGeometry ( const AbstractGeometry & other)
inline

Definition at line 27 of file AbstractGeometry.hpp.

Member Function Documentation

◆ clear()

virtual void Ra::Core::Geometry::AbstractGeometry::clear ( )
pure virtual

◆ computeAabb()

virtual Aabb Ra::Core::Geometry::AbstractGeometry::computeAabb ( ) const
pure virtual

◆ getAabb()

Core::Aabb Ra::Core::Geometry::AbstractGeometry::getAabb ( ) const
inlineprotected

Definition at line 48 of file AbstractGeometry.hpp.

◆ getAabbObservable()

Ra::Core::Utils::ObservableVoid & Ra::Core::Geometry::AbstractGeometry::getAabbObservable ( )
inline

Definition at line 44 of file AbstractGeometry.hpp.

◆ invalidateAabb()

void Ra::Core::Geometry::AbstractGeometry::invalidateAabb ( ) const
inlineprotected

Definition at line 50 of file AbstractGeometry.hpp.

◆ isAabbValid()

bool Ra::Core::Geometry::AbstractGeometry::isAabbValid ( ) const
inlineprotected

Definition at line 47 of file AbstractGeometry.hpp.

◆ operator=()

AbstractGeometry & Ra::Core::Geometry::AbstractGeometry::operator= ( const AbstractGeometry & other)
inline

Definition at line 32 of file AbstractGeometry.hpp.

◆ setAabb()

void Ra::Core::Geometry::AbstractGeometry::setAabb ( const Core::Aabb & aabb) const
inlineprotected

Definition at line 55 of file AbstractGeometry.hpp.


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