3D Forest
Software for analysis of Lidar data from forest environment.
ViewerAabb Class Reference

#include <ViewerAabb.hpp>

Public Member Functions

 ViewerAabb ()
 
 ~ViewerAabb ()
 
void set (float min_x, float min_y, float min_z, float max_x, float max_y, float max_z)
 
void set (const QVector3D &min, const QVector3D &max)
 
void set (const std::vector< float > &xyz)
 
void set (const Box< float > &box)
 
void set (const Box< double > &box)
 
void extend (const ViewerAabb &box)
 
void invalidate ()
 
bool isValid () const
 
const QVector3D & getMin () const
 
const QVector3D & getMax () const
 
const QVector3D & getCenter () const
 
float getRadius () const
 
void getRange (const QVector3D &eye, const QVector3D &direction, float *min, float *max)
 

Protected Member Functions

void setValid ()
 

Protected Attributes

QVector3D min_
 
QVector3D max_
 
QVector3D center_
 
float radius_
 
bool valid_
 

Constructor & Destructor Documentation

◆ ViewerAabb()

ViewerAabb::ViewerAabb ( )

◆ ~ViewerAabb()

ViewerAabb::~ViewerAabb ( )

Member Function Documentation

◆ extend()

void ViewerAabb::extend ( const ViewerAabb box)

◆ getCenter()

const QVector3D & ViewerAabb::getCenter ( ) const
inline

◆ getMax()

const QVector3D & ViewerAabb::getMax ( ) const
inline

Referenced by extend(), and ViewerOpenGL::renderAabb().

◆ getMin()

const QVector3D & ViewerAabb::getMin ( ) const
inline

Referenced by extend(), and ViewerOpenGL::renderAabb().

◆ getRadius()

float ViewerAabb::getRadius ( ) const
inline

◆ getRange()

void ViewerAabb::getRange ( const QVector3D &  eye,
const QVector3D &  direction,
float *  min,
float *  max 
)

◆ invalidate()

void ViewerAabb::invalidate ( )

◆ isValid()

◆ set() [1/5]

void ViewerAabb::set ( const Box< double > &  box)

◆ set() [2/5]

void ViewerAabb::set ( const Box< float > &  box)

◆ set() [3/5]

void ViewerAabb::set ( const QVector3D &  min,
const QVector3D &  max 
)

◆ set() [4/5]

void ViewerAabb::set ( const std::vector< float > &  xyz)

◆ set() [5/5]

void ViewerAabb::set ( float  min_x,
float  min_y,
float  min_z,
float  max_x,
float  max_y,
float  max_z 
)

◆ setValid()

void ViewerAabb::setValid ( )
protected

Referenced by extend(), and set().

Member Data Documentation

◆ center_

QVector3D ViewerAabb::center_
protected

Referenced by getCenter(), and setValid().

◆ max_

QVector3D ViewerAabb::max_
protected

Referenced by extend(), getMax(), getRange(), set(), and setValid().

◆ min_

QVector3D ViewerAabb::min_
protected

Referenced by extend(), getMin(), getRange(), set(), and setValid().

◆ radius_

float ViewerAabb::radius_
protected

Referenced by getRadius(), and setValid().

◆ valid_

bool ViewerAabb::valid_
protected

Referenced by invalidate(), isValid(), and setValid().


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