MeVisLab Toolbox Reference
CSOTrailRenderer Class Reference

#include <CSOTrailRenderer.h>

Public Types

typedef std::vector< ml::Vector3TrailT
 

Public Member Functions

 CSOTrailRenderer ()
 
const TrailTgetTrail () const
 
ml::Vector3 getTrailNormal () const
 
bool hasTrail () const
 
bool hasTrailWithArea () const
 
bool isInPlane () const
 
ml::CSOBoundingBox getVoxelBoundingBox ()
 
ml::CSOBoundingBox getProjectedVoxelBoundingBox ()
 
std::vector< ml::Vector3 > & getTrailVoxelSpace ()
 
std::vector< ml::Vector3 > & getSmoothedTrailVoxelSpace ()
 
void addToTrail (const SbVec3f &position)
 
void clearTrail ()
 
void setWorldToVoxelMatrix (const ml::Matrix4 &worldToVoxelMatrix)
 
void setupGLForTrail (const SoCSOEditorTools::LineRenderSettings &renderSettings) const
 
void setBackGLForTrail () const
 
void drawTrail (const CSODrawView2DInfos &view2DInfos, SoView2DCSOExtensibleEditor *editor, bool closeTrail=true) const
 

Static Public Member Functions

static bool segmentsArePossiblyCrossing (const ml::Vector3 &trailSegmentStart, const ml::Vector3 &trailSegmentEnd, const ml::Vector3 &csoSegmentStart, const ml::Vector3 &csoSegmentEnd)
 Returns whether the given segments are potentially crossing each other.
 
static void smoothPositions (const TrailT &inputPositions, TrailT &smoothedTrail)
 Smooths the given vector of positions by a Laplacian smoothing.
 

Protected Member Functions

void computeVoxelSpaceProperties ()
 
void convertSbVec3fToVector3 (const SbVec3f &original, ml::Vector3 &copy) const
 

Protected Attributes

TrailT _trailPositions
 
TrailT _trailPositionsVoxelSpace
 
TrailT _smoothedTrailPositionsVoxelSpace
 
ml::CSOBoundingBox _voxelBoundingBox
 
ml::CSOBoundingBox _projectedTrailVoxelBoundingBox
 
ml::Matrix4 _worldToVoxelMatrix
 
bool _shouldRecomputeVoxelSpaceProperties
 

Detailed Description

Definition at line 51 of file CSOTrailRenderer.h.

Member Typedef Documentation

◆ TrailT

Definition at line 55 of file CSOTrailRenderer.h.

Constructor & Destructor Documentation

◆ CSOTrailRenderer()

CSOTrailRenderer::CSOTrailRenderer ( )

Member Function Documentation

◆ addToTrail()

void CSOTrailRenderer::addToTrail ( const SbVec3f & position)

◆ clearTrail()

void CSOTrailRenderer::clearTrail ( )

◆ computeVoxelSpaceProperties()

void CSOTrailRenderer::computeVoxelSpaceProperties ( )
protected

◆ convertSbVec3fToVector3()

void CSOTrailRenderer::convertSbVec3fToVector3 ( const SbVec3f & original,
ml::Vector3 & copy ) const
protected

◆ drawTrail()

void CSOTrailRenderer::drawTrail ( const CSODrawView2DInfos & view2DInfos,
SoView2DCSOExtensibleEditor * editor,
bool closeTrail = true ) const

◆ getProjectedVoxelBoundingBox()

ml::CSOBoundingBox CSOTrailRenderer::getProjectedVoxelBoundingBox ( )

◆ getSmoothedTrailVoxelSpace()

std::vector< ml::Vector3 > & CSOTrailRenderer::getSmoothedTrailVoxelSpace ( )

◆ getTrail()

const TrailT & CSOTrailRenderer::getTrail ( ) const

◆ getTrailNormal()

ml::Vector3 CSOTrailRenderer::getTrailNormal ( ) const

◆ getTrailVoxelSpace()

std::vector< ml::Vector3 > & CSOTrailRenderer::getTrailVoxelSpace ( )

◆ getVoxelBoundingBox()

ml::CSOBoundingBox CSOTrailRenderer::getVoxelBoundingBox ( )

◆ hasTrail()

bool CSOTrailRenderer::hasTrail ( ) const

◆ hasTrailWithArea()

bool CSOTrailRenderer::hasTrailWithArea ( ) const

◆ isInPlane()

bool CSOTrailRenderer::isInPlane ( ) const

◆ segmentsArePossiblyCrossing()

static bool CSOTrailRenderer::segmentsArePossiblyCrossing ( const ml::Vector3 & trailSegmentStart,
const ml::Vector3 & trailSegmentEnd,
const ml::Vector3 & csoSegmentStart,
const ml::Vector3 & csoSegmentEnd )
static

Returns whether the given segments are potentially crossing each other.

◆ setBackGLForTrail()

void CSOTrailRenderer::setBackGLForTrail ( ) const

◆ setupGLForTrail()

void CSOTrailRenderer::setupGLForTrail ( const SoCSOEditorTools::LineRenderSettings & renderSettings) const

◆ setWorldToVoxelMatrix()

void CSOTrailRenderer::setWorldToVoxelMatrix ( const ml::Matrix4 & worldToVoxelMatrix)

◆ smoothPositions()

static void CSOTrailRenderer::smoothPositions ( const TrailT & inputPositions,
TrailT & smoothedTrail )
static

Smooths the given vector of positions by a Laplacian smoothing.

Member Data Documentation

◆ _projectedTrailVoxelBoundingBox

ml::CSOBoundingBox CSOTrailRenderer::_projectedTrailVoxelBoundingBox
protected

Definition at line 97 of file CSOTrailRenderer.h.

◆ _shouldRecomputeVoxelSpaceProperties

bool CSOTrailRenderer::_shouldRecomputeVoxelSpaceProperties
protected

Definition at line 99 of file CSOTrailRenderer.h.

◆ _smoothedTrailPositionsVoxelSpace

TrailT CSOTrailRenderer::_smoothedTrailPositionsVoxelSpace
protected

Definition at line 95 of file CSOTrailRenderer.h.

◆ _trailPositions

TrailT CSOTrailRenderer::_trailPositions
protected

Definition at line 93 of file CSOTrailRenderer.h.

◆ _trailPositionsVoxelSpace

TrailT CSOTrailRenderer::_trailPositionsVoxelSpace
protected

Definition at line 94 of file CSOTrailRenderer.h.

◆ _voxelBoundingBox

ml::CSOBoundingBox CSOTrailRenderer::_voxelBoundingBox
protected

Definition at line 96 of file CSOTrailRenderer.h.

◆ _worldToVoxelMatrix

ml::Matrix4 CSOTrailRenderer::_worldToVoxelMatrix
protected

Definition at line 98 of file CSOTrailRenderer.h.


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