Point Cloud Viewer  1.00
A Viewer to display point clouds with phong shading by converting them to splats.
Entity Class Reference

An element with a location in 3-dimensional space. More...

#include <entity.h>

Inherited by Camera, EntityMoveable, and Splat.

Public Member Functions

 Entity (float x, float y, float z)
 Creates a new entity at the given location. More...
 
 Entity ()
 Creates a new entity at the origin (0,0,0).
 
float distance (Entity &to)
 Computes the euclidean distance to another entity. More...
 
float distance (float x, float y, float z)
 Computes the euclidean distance to a location. More...
 
QVector3D getPos ()
 Returns the location of the entity. More...
 
virtual void setPos (QVector3D &pos)
 Changes the entity's location. More...
 
virtual void setPos (float x, float y, float z)
 Changes the entity's location. More...
 

Public Attributes

float x
 The x coordinate of the entity's location.
 
float y
 The y coordinate of the entity's location.
 
float z
 The z coordinate of the entity's location.
 

Detailed Description

An element with a location in 3-dimensional space.

Constructor & Destructor Documentation

Entity::Entity ( float  x,
float  y,
float  z 
)

Creates a new entity at the given location.

Parameters
xThe x coordinate.
yThe y coordinate.
zThe z coordinate.

Member Function Documentation

float Entity::distance ( Entity to)

Computes the euclidean distance to another entity.

Parameters
toThe other entity.
Returns
The distance.
float Entity::distance ( float  x,
float  y,
float  z 
)

Computes the euclidean distance to a location.

Parameters
xThe location's x coordinate.
yThe location's y coordinate.
zThe location's z coordinate.
Returns
The distance.
QVector3D Entity::getPos ( )

Returns the location of the entity.

Returns
The position.
void Entity::setPos ( QVector3D &  pos)
virtual

Changes the entity's location.

Parameters
posThe new position.

Reimplemented in Camera.

void Entity::setPos ( float  x,
float  y,
float  z 
)
virtual

Changes the entity's location.

Parameters
xThe new x coordinate.
yThe new y coordinate.
zThe new z coordinate.

Reimplemented in Camera.


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