INET Framework for OMNeT++/OMNEST
inet::physicalenvironment::PhysicalObject Class Reference

This class represents an immobile physical object, a rigid body and its physical properties. More...

#include <PhysicalObject.h>

Inheritance diagram for inet::physicalenvironment::PhysicalObject:
inet::physicalenvironment::IPhysicalObject

Protected Attributes

const int id
 A globally unique identifier for the whole lifetime of the simulation among all physical objects. More...
 
Object properties
Coord position
 The center of the object's bounding box. More...
 
Quaternion orientation
 The orientation of the object relative to the default orientation of the shape. More...
 
const ShapeBaseshape
 The shape of the object independently of its position and orientation. More...
 
const Materialmaterial
 The material of the object determines its physical properties. More...
 

Graphics properties

const double lineWidth
 
const cFigure::Color lineColor
 
const cFigure::Color fillColor
 
const double opacity
 
const char * texture
 
const char * tags
 
 PhysicalObject (const char *name, int id, const Coord &position, const Quaternion &orientation, const ShapeBase *shape, const Material *material, double lineWidth, const cFigure::Color &lineColor, const cFigure::Color &fillColor, double opacity, const char *texture, const char *tags)
 
virtual int getId () const
 
virtual const CoordgetPosition () const override
 
virtual const QuaterniongetOrientation () const override
 
virtual const ShapeBasegetShape () const override
 
virtual const MaterialgetMaterial () const override
 
virtual double getLineWidth () const override
 
virtual const cFigure::Color & getLineColor () const override
 
virtual const cFigure::Color & getFillColor () const override
 
virtual double getOpacity () const override
 
virtual const char * getTexture () const override
 
virtual const char * getTags () const override
 

Additional Inherited Members

Detailed Description

This class represents an immobile physical object, a rigid body and its physical properties.

The properties of physical objects cannot change over time.

Constructor & Destructor Documentation

◆ PhysicalObject()

inet::physicalenvironment::PhysicalObject::PhysicalObject ( const char *  name,
int  id,
const Coord position,
const Quaternion orientation,
const ShapeBase shape,
const Material material,
double  lineWidth,
const cFigure::Color &  lineColor,
const cFigure::Color &  fillColor,
double  opacity,
const char *  texture,
const char *  tags 
)
14  :
15  cNamedObject(name),
16  id(id),
19  shape(shape),
26  tags(tags)
27 {
28 }

Member Function Documentation

◆ getFillColor()

virtual const cFigure::Color& inet::physicalenvironment::PhysicalObject::getFillColor ( ) const
inlineoverridevirtual

◆ getId()

virtual int inet::physicalenvironment::PhysicalObject::getId ( ) const
inlinevirtual
69 { return id; }

◆ getLineColor()

virtual const cFigure::Color& inet::physicalenvironment::PhysicalObject::getLineColor ( ) const
inlineoverridevirtual

◆ getLineWidth()

virtual double inet::physicalenvironment::PhysicalObject::getLineWidth ( ) const
inlineoverridevirtual

◆ getMaterial()

virtual const Material* inet::physicalenvironment::PhysicalObject::getMaterial ( ) const
inlineoverridevirtual

◆ getOpacity()

virtual double inet::physicalenvironment::PhysicalObject::getOpacity ( ) const
inlineoverridevirtual

◆ getOrientation()

virtual const Quaternion& inet::physicalenvironment::PhysicalObject::getOrientation ( ) const
inlineoverridevirtual

◆ getPosition()

virtual const Coord& inet::physicalenvironment::PhysicalObject::getPosition ( ) const
inlineoverridevirtual

◆ getShape()

virtual const ShapeBase* inet::physicalenvironment::PhysicalObject::getShape ( ) const
inlineoverridevirtual

◆ getTags()

virtual const char* inet::physicalenvironment::PhysicalObject::getTags ( ) const
inlineoverridevirtual

Implements inet::physicalenvironment::IPhysicalObject.

82 { return tags; }

◆ getTexture()

virtual const char* inet::physicalenvironment::PhysicalObject::getTexture ( ) const
inlineoverridevirtual

Member Data Documentation

◆ fillColor

const cFigure::Color inet::physicalenvironment::PhysicalObject::fillColor
protected

◆ id

const int inet::physicalenvironment::PhysicalObject::id
protected

A globally unique identifier for the whole lifetime of the simulation among all physical objects.

◆ lineColor

const cFigure::Color inet::physicalenvironment::PhysicalObject::lineColor
protected

◆ lineWidth

const double inet::physicalenvironment::PhysicalObject::lineWidth
protected

◆ material

const Material* inet::physicalenvironment::PhysicalObject::material
protected

The material of the object determines its physical properties.

The physical object doesn't own its material.

◆ opacity

const double inet::physicalenvironment::PhysicalObject::opacity
protected

◆ orientation

Quaternion inet::physicalenvironment::PhysicalObject::orientation
protected

The orientation of the object relative to the default orientation of the shape.

◆ position

Coord inet::physicalenvironment::PhysicalObject::position
protected

The center of the object's bounding box.

◆ shape

const ShapeBase* inet::physicalenvironment::PhysicalObject::shape
protected

The shape of the object independently of its position and orientation.

The physical object doesn't own its shape.

◆ tags

const char* inet::physicalenvironment::PhysicalObject::tags
protected

◆ texture

const char* inet::physicalenvironment::PhysicalObject::texture
protected

The documentation for this class was generated from the following files:
inet::physicalenvironment::PhysicalObject::position
Coord position
The center of the object's bounding box.
Definition: PhysicalObject.h:39
inet::physicalenvironment::PhysicalObject::opacity
const double opacity
Definition: PhysicalObject.h:61
inet::physicalenvironment::PhysicalObject::texture
const char * texture
Definition: PhysicalObject.h:62
inet::physicalenvironment::PhysicalObject::lineWidth
const double lineWidth
Definition: PhysicalObject.h:58
inet::physicalenvironment::PhysicalObject::lineColor
const cFigure::Color lineColor
Definition: PhysicalObject.h:59
inet::physicalenvironment::PhysicalObject::orientation
Quaternion orientation
The orientation of the object relative to the default orientation of the shape.
Definition: PhysicalObject.h:43
inet::physicalenvironment::PhysicalObject::shape
const ShapeBase * shape
The shape of the object independently of its position and orientation.
Definition: PhysicalObject.h:48
inet::physicalenvironment::PhysicalObject::tags
const char * tags
Definition: PhysicalObject.h:63
inet::physicalenvironment::PhysicalObject::id
const int id
A globally unique identifier for the whole lifetime of the simulation among all physical objects.
Definition: PhysicalObject.h:32
inet::physicalenvironment::PhysicalObject::material
const Material * material
The material of the object determines its physical properties.
Definition: PhysicalObject.h:53
inet::physicalenvironment::PhysicalObject::fillColor
const cFigure::Color fillColor
Definition: PhysicalObject.h:60