ET::Brush Class Reference

#include <ETBrush.h>

List of all members.

Public Member Functions

 Brush ()
 Brush (const float *brush, size_t width, size_t height)
 Brush (const std::vector< float > &brush, size_t width, size_t height)
 Brush (const Brush &other)
 ~Brush ()
Brushoperator= (const Brush &other)
size_t getWidth () const
size_t getHeight () const
float & at (size_t x, size_t y)
const float at (size_t x, size_t y) const
void swap (Brush &other)

Private Attributes

float * mBrushArray
size_t mWidth
size_t mHeight


Detailed Description

This class represents a brush used to deform terrain or edit splatting coverage

Constructor & Destructor Documentation

ET::Brush::Brush (  ) 

Default constructor

ET::Brush::Brush ( const float *  brush,
size_t  width,
size_t  height 
)

Constructs a brush from a given array of floats

ET::Brush::Brush ( const std::vector< float > &  brush,
size_t  width,
size_t  height 
)

Constructs a brush from a given vector of floats

ET::Brush::Brush ( const Brush other  ) 

Copy constructor

ET::Brush::~Brush (  ) 


Member Function Documentation

Brush& ET::Brush::operator= ( const Brush other  ) 

Copy assignment

size_t ET::Brush::getWidth (  )  const [inline]

size_t ET::Brush::getHeight (  )  const [inline]

float& ET::Brush::at ( size_t  x,
size_t  y 
) [inline]

Access to the brush array

const float ET::Brush::at ( size_t  x,
size_t  y 
) const [inline]

Const access to the brush array

void ET::Brush::swap ( Brush other  ) 

Exception-safe swap function


Member Data Documentation

float* ET::Brush::mBrushArray [private]

The actual brush array containing the brush values

size_t ET::Brush::mWidth [private]

The brush's dimensions

size_t ET::Brush::mHeight [private]


The documentation for this class was generated from the following file:
Generated on Tue Sep 4 21:46:02 2007 for Editable Terrain Manager by  doxygen 1.5.3