TexGen
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
TexGen::COctreeVisitorElementNearLine Class Reference

Octree visitor used to get a list of elements near given line. More...

#include <MeshOctreeClasses.h>

Inheritance diagram for TexGen::COctreeVisitorElementNearLine:
Inheritance graph
[legend]

Public Member Functions

 COctreeVisitorElementNearLine (const XYZ &P1, const XYZ &P2, list< vector< int > > &Elements, pair< bool, bool > TrimLine)
 Get a list of elements that are likely to intersect with the given line. More...
 
 ~COctreeVisitorElementNearLine ()
 

Protected Member Functions

void visitRoot (const OctreeCell *pRootCell, const OctreeData &octreeData)
 
void visitBranch (const OctreeCell *subCells[8], const OctreeData &octreeData)
 
void visitLeaf (const Array< const MESH_ELEMENT * > &items, const OctreeData &octreeData)
 

Protected Attributes

const XYZm_P1
 
const XYZm_P2
 
list< vector< int > > & m_Elements
 
pair< bool, bool > m_TrimLine
 
vector< bool > m_Used
 

Detailed Description

Octree visitor used to get a list of elements near given line.

Definition at line 132 of file MeshOctreeClasses.h.

Constructor & Destructor Documentation

◆ COctreeVisitorElementNearLine()

TexGen::COctreeVisitorElementNearLine::COctreeVisitorElementNearLine ( const XYZ P1,
const XYZ P2,
list< vector< int > > &  Elements,
pair< bool, bool >  TrimLine 
)
inline

Get a list of elements that are likely to intersect with the given line.

Parameters
P1Origin of the line
P2End of the line
ElementsA list of elements near the line
TrimLineIf true the line ends at the origin and end respecitively

Definition at line 142 of file MeshOctreeClasses.h.

◆ ~COctreeVisitorElementNearLine()

TexGen::COctreeVisitorElementNearLine::~COctreeVisitorElementNearLine ( )
inline

Definition at line 143 of file MeshOctreeClasses.h.

Member Function Documentation

◆ visitBranch()

void COctreeVisitorElementNearLine::visitBranch ( const OctreeCell *  subCells[8],
const OctreeData &  octreeData 
)
protected

Definition at line 186 of file MeshOctreeClasses.cpp.

References m_P1, m_P2, m_TrimLine, TexGen::XYZ::x, TexGen::XYZ::y, and TexGen::XYZ::z.

◆ visitLeaf()

void COctreeVisitorElementNearLine::visitLeaf ( const Array< const MESH_ELEMENT * > &  items,
const OctreeData &  octreeData 
)
protected

◆ visitRoot()

void COctreeVisitorElementNearLine::visitRoot ( const OctreeCell *  pRootCell,
const OctreeData &  octreeData 
)
protected

Definition at line 177 of file MeshOctreeClasses.cpp.

References m_Used.

Member Data Documentation

◆ m_Elements

list< vector<int> >& TexGen::COctreeVisitorElementNearLine::m_Elements
protected

Definition at line 152 of file MeshOctreeClasses.h.

Referenced by visitLeaf().

◆ m_P1

const XYZ& TexGen::COctreeVisitorElementNearLine::m_P1
protected

Definition at line 150 of file MeshOctreeClasses.h.

Referenced by visitBranch().

◆ m_P2

const XYZ& TexGen::COctreeVisitorElementNearLine::m_P2
protected

Definition at line 151 of file MeshOctreeClasses.h.

Referenced by visitBranch().

◆ m_TrimLine

pair<bool, bool> TexGen::COctreeVisitorElementNearLine::m_TrimLine
protected

Definition at line 153 of file MeshOctreeClasses.h.

Referenced by visitBranch().

◆ m_Used

vector<bool> TexGen::COctreeVisitorElementNearLine::m_Used
protected

Definition at line 154 of file MeshOctreeClasses.h.

Referenced by visitLeaf(), and visitRoot().


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