#include <CutPlane.h>
Classes | |
struct | comp |
Public Types | |
typedef std::pair< int, int > | elem_idx |
typedef std::set< elem_idx, comp > | elem_indices |
typedef elem_indices::iterator | elem_indices_itr |
Public Member Functions | |
CutPlane (double nx=0.0, double ny=0.0, double nz=1.0, double d=-0.05, bool normalize=true) | |
CutPlane (double p[], bool normalize=true) | |
CutPlane (const CutPlane &rhs) | |
CutPlane & | operator= (const CutPlane &rhs) |
virtual | ~CutPlane () |
void | Enable (bool status=true) |
bool | IsActive () const |
void | Show (bool status=true) |
void | Hide () |
bool | IsVisible () const |
void | SetChanged (bool state=true) |
bool | IsPlaneChanged () const |
bool | IsNormalized () const |
elem_indices & | GetElementIndices () |
const elem_indices & | GetElementIndices () const |
void | Set (double a, double b, double c, double d, bool normalize=true) |
bool | operator() (const Plane &rhPl) |
bool | operator== (const CutPlane &rhs) |
int | IntersectWithLine (double *x2, double *x1, double &u) const |
int | CheckOrientation (const double v[]) |
int | InversPlane (const double v[]) |
bool | InitGeometryOutlines (const BBox3D &bbox) |
bool | IsValid (const AAbbf &bbox) const |
template<typename T > | |
int | IntersectBBox3D (const AAbb< T > &bbox) const |
bool | InitOutlines (const BBox3D &bbox) |
void | Draw () const |
void | AddIndex (const elem_idx &&idx) |
bool | IsElement (const elem_idx &&idx) const |
unsigned | GetMaxNUmVertices (int max_div) |
unsigned | GetMaxNumIndices (int max_div) |
Static Public Member Functions | |
static int | Defaults (const BBox3D &bbox, std::vector< CutPlane > &out_planes) |
static CutPlane | SetPlane (fvmath::CVec3d normal, fvmath::CVec3d point) |
static unsigned | CutElement (const CutPlane *pl, const double vts[18], const int nodes[7], const int index, int div, std::vector< Node_t > &vertices, std::vector< unsigned > &triagles) |
Friends | |
std::ostream & | operator<< (std::ostream &os, const CutPlane &rhs) |
typedef std::pair<int,int> FemViewer::CutPlane::elem_idx |
typedef std::set<elem_idx,comp> FemViewer::CutPlane::elem_indices |
typedef elem_indices::iterator FemViewer::CutPlane::elem_indices_itr |
FemViewer::CutPlane::CutPlane | ( | double | nx = 0.0 , |
|
double | ny = 0.0 , |
|||
double | nz = 1.0 , |
|||
double | d = -0.05 , |
|||
bool | normalize = true | |||
) | [inline] |
FemViewer::CutPlane::CutPlane | ( | double | p[], | |
bool | normalize = true | |||
) | [inline] |
FemViewer::CutPlane::CutPlane | ( | const CutPlane & | rhs | ) | [inline] |
virtual FemViewer::CutPlane::~CutPlane | ( | ) | [inline, virtual] |
int FemViewer::CutPlane::CheckOrientation | ( | const double | v[] | ) |
unsigned int FemViewer::CutPlane::CutElement | ( | const CutPlane * | pl, | |
const double | vts[18], | |||
const int | nodes[7], | |||
const int | index, | |||
int | div, | |||
std::vector< Node_t > & | vertices, | |||
std::vector< unsigned > & | triagles | |||
) | [static] |
int FemViewer::CutPlane::Defaults | ( | const BBox3D & | bbox, | |
std::vector< CutPlane > & | out_planes | |||
) | [static] |
void FemViewer::CutPlane::Enable | ( | bool | status = true |
) | [inline] |
const elem_indices& FemViewer::CutPlane::GetElementIndices | ( | ) | const [inline] |
elem_indices& FemViewer::CutPlane::GetElementIndices | ( | ) | [inline] |
unsigned FemViewer::CutPlane::GetMaxNumIndices | ( | int | max_div | ) |
unsigned FemViewer::CutPlane::GetMaxNUmVertices | ( | int | max_div | ) |
void FemViewer::CutPlane::Hide | ( | ) | [inline] |
bool FemViewer::CutPlane::InitGeometryOutlines | ( | const BBox3D & | bbox | ) |
bool FemViewer::CutPlane::InitOutlines | ( | const BBox3D & | bbox | ) |
int FemViewer::CutPlane::IntersectBBox3D | ( | const AAbb< T > & | bbox | ) | const [inline] |
int FemViewer::CutPlane::IntersectWithLine | ( | double * | x2, | |
double * | x1, | |||
double & | u | |||
) | const [inline] |
int FemViewer::CutPlane::InversPlane | ( | const double | v[] | ) |
bool FemViewer::CutPlane::IsActive | ( | ) | const [inline] |
bool FemViewer::CutPlane::IsElement | ( | const elem_idx && | idx | ) | const |
bool FemViewer::CutPlane::IsNormalized | ( | ) | const [inline] |
bool FemViewer::CutPlane::IsPlaneChanged | ( | ) | const [inline] |
bool FemViewer::CutPlane::IsValid | ( | const AAbbf & | bbox | ) | const [inline] |
bool FemViewer::CutPlane::IsVisible | ( | ) | const [inline] |
bool FemViewer::CutPlane::operator() | ( | const Plane & | rhPl | ) | [inline] |
Reimplemented from FemViewer::Plane.
bool FemViewer::CutPlane::operator== | ( | const CutPlane & | rhs | ) |
void FemViewer::CutPlane::Set | ( | double | a, | |
double | b, | |||
double | c, | |||
double | d, | |||
bool | normalize = true | |||
) | [inline] |
void FemViewer::CutPlane::SetChanged | ( | bool | state = true |
) | [inline] |
CutPlane FemViewer::CutPlane::SetPlane | ( | fvmath::CVec3d | normal, | |
fvmath::CVec3d | point | |||
) | [static] |
void FemViewer::CutPlane::Show | ( | bool | status = true |
) | [inline] |
std::ostream& operator<< | ( | std::ostream & | os, | |
const CutPlane & | rhs | |||
) | [friend] |