3Depict
|
#include <effect.h>
Public Member Functions | |
BoxCropEffect () | |
virtual | ~BoxCropEffect () |
Effect * | clone () const |
void | enable (unsigned int pass) const |
Enable the clipping plane. Values must be set before calling. More... | |
void | disable () const |
DIsable the clipping plane. More... | |
bool | writeState (std::ofstream &f, unsigned int format, unsigned int depth) const |
bool | readState (xmlNodePtr n) |
bool | willDoSomething () const |
Returns true if the effect has any influence on the output. More... | |
void | setFractions (const float *fractionArray) |
Set the fractions of cube from margin. More... | |
void | useCamCoords (bool enable) |
void | getCroppedBounds (BoundCube &b) const |
Alters the input box to generate cropping bounding box. More... | |
float | getCropValue (unsigned int pos) const |
![]() | |
Effect () | |
virtual | ~Effect () |
std::string | getName () const |
virtual bool | needCamUpdate () const |
virtual unsigned int | numPassesNeeded () const |
virtual unsigned int | getType () const |
Additional Inherited Members | |
![]() | |
static void | setCurCam (Camera *c) |
static void | setBoundingCube (const BoundCube &c) |
![]() | |
unsigned int | effectType |
![]() | |
static Camera * | curCam =0 |
static BoundCube | bc |
BoxCropEffect::BoxCropEffect | ( | ) |
References EFFECT_BOX_CROP, and Effect::effectType.
Referenced by clone().
|
inlinevirtual |
|
virtual |
Implements Effect.
References BoxCropEffect().
|
virtual |
|
virtual |
Enable the clipping plane. Values must be set before calling.
Implements Effect.
References Point3D::angle(), ASSERT, Effect::bc, Point3D::crossProd(), Effect::curCam, Point3D::dotProd(), Point3f::fx, Point3f::fy, Point3f::fz, BoundCube::getBounds(), Camera::getUpDirection(), Camera::getViewDirection(), M_PI, MIN_CROP_FRACTION, Point3D::normalise(), quat_rot(), Point3D::setValue(), and Point3D::sqrMag().
void BoxCropEffect::getCroppedBounds | ( | BoundCube & | b | ) | const |
Alters the input box to generate cropping bounding box.
References BoundCube::getBounds(), and BoundCube::setBounds().
Referenced by MainWindowFrame::OnUpdateTimer().
float BoxCropEffect::getCropValue | ( | unsigned int | pos | ) | const |
References ASSERT.
Referenced by MainWindowFrame::OnUpdateTimer().
|
virtual |
Implements Effect.
References XMLGetNextElemAttrib(), and XMLHelpFwdToElem().
void BoxCropEffect::setFractions | ( | const float * | fractionArray | ) |
Set the fractions of cube from margin.
Referenced by MainWindowFrame::OnUpdateTimer().
|
inline |
References Effect::enable().
Referenced by MainWindowFrame::OnUpdateTimer().
|
virtual |
Returns true if the effect has any influence on the output.
Implements Effect.
References MIN_CROP_FRACTION.
Referenced by MainWindowFrame::OnUpdateTimer().
|
virtual |
Implements Effect.
References ASSERT, STATE_FORMAT_XML, and tabs().