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

Public Member Functions

 PhysicalObject (const char *name, int id, const Coord &position, const EulerAngles &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 EulerAnglesgetOrientation () 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
 

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...
 
EulerAngles 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
 

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

inet::physicalenvironment::PhysicalObject::PhysicalObject ( const char *  name,
int  id,
const Coord position,
const EulerAngles 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 
)
24  :
25  cNamedObject(name),
26  id(id),
29  shape(shape),
36  tags(tags)
37 {
38 }
const char * texture
Definition: PhysicalObject.h:72
const cFigure::Color fillColor
Definition: PhysicalObject.h:70
EulerAngles orientation
The orientation of the object relative to the default orientation of the shape.
Definition: PhysicalObject.h:53
const double opacity
Definition: PhysicalObject.h:71
const char * tags
Definition: PhysicalObject.h:73
const int id
A globally unique identifier for the whole lifetime of the simulation among all physical objects...
Definition: PhysicalObject.h:42
const double lineWidth
Definition: PhysicalObject.h:68
Coord position
The center of the object&#39;s bounding box.
Definition: PhysicalObject.h:49
const cFigure::Color lineColor
Definition: PhysicalObject.h:69
const ShapeBase * shape
The shape of the object independently of its position and orientation.
Definition: PhysicalObject.h:58
const Material * material
The material of the object determines its physical properties.
Definition: PhysicalObject.h:63

Member Function Documentation

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

Implements inet::physicalenvironment::IPhysicalObject.

89 { return fillColor; }
const cFigure::Color fillColor
Definition: PhysicalObject.h:70
virtual int inet::physicalenvironment::PhysicalObject::getId ( ) const
inlinevirtual
79 { return id; }
const int id
A globally unique identifier for the whole lifetime of the simulation among all physical objects...
Definition: PhysicalObject.h:42
virtual const cFigure::Color& inet::physicalenvironment::PhysicalObject::getLineColor ( ) const
inlineoverridevirtual

Implements inet::physicalenvironment::IPhysicalObject.

88 { return lineColor; }
const cFigure::Color lineColor
Definition: PhysicalObject.h:69
virtual double inet::physicalenvironment::PhysicalObject::getLineWidth ( ) const
inlineoverridevirtual

Implements inet::physicalenvironment::IPhysicalObject.

87 { return lineWidth; }
const double lineWidth
Definition: PhysicalObject.h:68
virtual const Material* inet::physicalenvironment::PhysicalObject::getMaterial ( ) const
inlineoverridevirtual

Implements inet::physicalenvironment::IPhysicalObject.

85 { return material; }
const Material * material
The material of the object determines its physical properties.
Definition: PhysicalObject.h:63
virtual double inet::physicalenvironment::PhysicalObject::getOpacity ( ) const
inlineoverridevirtual

Implements inet::physicalenvironment::IPhysicalObject.

90 { return opacity; }
const double opacity
Definition: PhysicalObject.h:71
virtual const EulerAngles& inet::physicalenvironment::PhysicalObject::getOrientation ( ) const
inlineoverridevirtual

Implements inet::physicalenvironment::IPhysicalObject.

82 { return orientation; }
EulerAngles orientation
The orientation of the object relative to the default orientation of the shape.
Definition: PhysicalObject.h:53
virtual const Coord& inet::physicalenvironment::PhysicalObject::getPosition ( ) const
inlineoverridevirtual

Implements inet::physicalenvironment::IPhysicalObject.

81 { return position; }
Coord position
The center of the object&#39;s bounding box.
Definition: PhysicalObject.h:49
virtual const ShapeBase* inet::physicalenvironment::PhysicalObject::getShape ( ) const
inlineoverridevirtual

Implements inet::physicalenvironment::IPhysicalObject.

84 { return shape; }
const ShapeBase * shape
The shape of the object independently of its position and orientation.
Definition: PhysicalObject.h:58
virtual const char* inet::physicalenvironment::PhysicalObject::getTags ( ) const
inlineoverridevirtual

Implements inet::physicalenvironment::IPhysicalObject.

92 { return tags; }
const char * tags
Definition: PhysicalObject.h:73
virtual const char* inet::physicalenvironment::PhysicalObject::getTexture ( ) const
inlineoverridevirtual

Implements inet::physicalenvironment::IPhysicalObject.

91 { return texture; }
const char * texture
Definition: PhysicalObject.h:72

Member Data Documentation

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

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

const cFigure::Color inet::physicalenvironment::PhysicalObject::lineColor
protected
const double inet::physicalenvironment::PhysicalObject::lineWidth
protected
const Material* inet::physicalenvironment::PhysicalObject::material
protected

The material of the object determines its physical properties.

The physical object doesn't own its material.

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

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

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

The center of the object's bounding box.

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.

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

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