brushconstruct::Prism Class Reference

#include <Prism.h>

Inheritance diagram for brushconstruct::Prism:
Inheritance graph
[legend]
Collaboration diagram for brushconstruct::Prism:
Collaboration graph
[legend]

Public Member Functions

void generate (Brush &brush, const AABB &bounds, std::size_t sides, const TextureProjection &projection, const std::string &shader)
const std::string getName () const

Static Public Member Functions

static BrushConstructorgetInstance ()

Private Member Functions

const int getViewAxis () const
const float getMaxExtent2D (const Vector3 &extents, int axis) const

Static Private Attributes

static const std::size_t _minSides = 3
static const std::size_t _maxSides = c_brush_maxFaces - 2

Detailed Description

Definition at line 7 of file Prism.h.


Member Function Documentation

void brushconstruct::Prism::generate ( Brush brush,
const AABB &  bounds,
std::size_t  sides,
const TextureProjection &  projection,
const std::string shader 
) [virtual]
Parameters:
[out] brush The brush to create the planes for
[in] bounds The mins and maxs of the cube
[in] sides 
[in] projection The texture projection that is used (shift, scale and rotate values)
[in] shader The path of the texture relative to the base dir

Implements brushconstruct::BrushConstructor.

static BrushConstructor& brushconstruct::Prism::getInstance (  )  [inline, static]

Definition at line 44 of file Prism.h.

const float brushconstruct::Prism::getMaxExtent2D ( const Vector3 extents,
int  axis 
) const [inline, private]

Definition at line 21 of file Prism.h.

const std::string brushconstruct::Prism::getName (  )  const [virtual]
const int brushconstruct::Prism::getViewAxis (  )  const [inline, private]

Definition at line 8 of file Prism.h.

References XY, XZ, and YZ.


Field Documentation

const std::size_t brushconstruct::Prism::_maxSides = c_brush_maxFaces - 2 [static, private]

Definition at line 36 of file Prism.h.

const std::size_t brushconstruct::Prism::_minSides = 3 [static, private]

Definition at line 35 of file Prism.h.


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

Generated by  doxygen 1.6.2