Public Member Functions | Private Attributes
objtree::FilterSphere Class Reference

#include <filter.h>

Inheritance diagram for objtree::FilterSphere:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual bool filter (const Box &dim) const
 FilterSphere (float x, float y, float z, float radius)
virtual Type type () const

Private Attributes

float m_radiusSquare
float m_x
float m_y
float m_z

Detailed Description

Sphere filter class.

Definition at line 109 of file filter.h.


Constructor & Destructor Documentation

objtree::FilterSphere::FilterSphere ( float  x,
float  y,
float  z,
float  radius 
)

A constructor. Creates a sphere filter. The filter returns true for nodes inside this sphere.

Parameters:
x
y
z
radius

Definition at line 122 of file filter.cpp.


Member Function Documentation

bool objtree::FilterSphere::filter ( const Box dim) const [virtual]

Returns true if node is inside a sphere.

Parameters:
dimnode size
Returns:
true if node is inside a sphere, false otherwise

Implements objtree::Filter.

Definition at line 132 of file filter.cpp.

virtual Type objtree::FilterSphere::type ( ) const [inline, virtual]

Implements objtree::Filter.

Definition at line 119 of file filter.h.


Member Data Documentation

Definition at line 113 of file filter.h.

float objtree::FilterSphere::m_x [private]

Definition at line 112 of file filter.h.

float objtree::FilterSphere::m_y [private]

Definition at line 112 of file filter.h.

float objtree::FilterSphere::m_z [private]

Definition at line 112 of file filter.h.


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


srs_env_model
Author(s): Vit Stancl (stancl@fit.vutbr.cz), Tomas Lokaj, Jan Gorig, Michal Spanel (spanel@fit.vutbr.cz)
autogenerated on Sun Jan 5 2014 11:50:50