#include <Vector.h>
Public Member Functions | |
RBound (T XMin=(T) 0, T XMax=(T) 0, T YMin=(T) 0, T YMax=(T) 0, T ZMin=(T) 0, T ZMax=(T) 0, T TMin=(T) 0, T TMax=(T) 0) | |
virtual | ~RBound () |
void | set (T XMin=(T) 0, T XMax=(T) 0, T YMin=(T) 0, T YMax=(T) 0, T ZMin=(T) 0, T ZMax=(T) 0, T TMin=(T) 0, T TMax=(T) 0) |
void | init () |
void | enlarge (T f) |
境界構造体 bound を広げる | |
void | multiple (T f) |
void | fusion (RBound< T > bound) |
境界構造体 bound と融合させる | |
void | fusion (Vector< T > vect) |
ベクトル vect と融合させる | |
void | fusion (T x, T y, T z) |
ポイントと融合させる | |
void | commonarea (RBound< T > bound) |
境界構造体 bound との共通領域 共通領域がない場合は,min>max になる | |
void | cutdown (RBound< T > bound) |
void | cutdown (Vector< T > vect) |
void | cutdown (T x, T y, T z) |
bool | outofBounds (Vector< T > vect) |
ベクトルが位置ベクトルの場合,その点は境界外か? 境界外:true,境界内:false | |
bool | outofBounds (T x, T y, T z) |
その点は境界外か? 境界外:true,境界内:false | |
Public Attributes | |
T | xmin |
x軸境界の最小値. | |
T | xmax |
x軸境界の最大値. | |
T | ymin |
y軸境界の最小値. | |
T | ymax |
y軸境界の最大値. | |
T | zmin |
z軸境界の最小値. | |
T | zmax |
z軸境界の最大値. | |
T | tmin |
汎用. | |
T | tmax |
汎用. |
template <typename t="int"> class RBound
3Dデータの境界情報を保存する型.
Definition at line 417 of file Vector.h.
RBound | ( | T | XMin = (T)0 , |
|
T | XMax = (T)0 , |
|||
T | YMin = (T)0 , |
|||
T | YMax = (T)0 , |
|||
T | ZMin = (T)0 , |
|||
T | ZMax = (T)0 , |
|||
T | TMin = (T)0 , |
|||
T | TMax = (T)0 | |||
) | [inline] |
void commonarea | ( | RBound< T > | bound | ) | [inline] |
Definition at line 511 of file Vector.h.
Referenced by jbxl::cut_object_MSGraph().
00511 { 00512 xmin = Max(xmin, bound.xmin); 00513 ymin = Max(ymin, bound.ymin); 00514 zmin = Max(zmin, bound.zmin); 00515 xmax = Min(xmax, bound.xmax); 00516 ymax = Min(ymax, bound.ymax); 00517 zmax = Min(zmax, bound.zmax); 00518 }
void cutdown | ( | T | x, | |
T | y, | |||
T | z | |||
) | [inline] |
void cutdown | ( | Vector< T > | vect | ) | [inline] |
void cutdown | ( | RBound< T > | bound | ) | [inline] |
切り出した場合の境界
Definition at line 522 of file Vector.h.
Referenced by jbxl::cut_object_MSGraph(), and jbxl::get_boundary_MSGraph().
00522 { 00523 xmin += bound.xmin; 00524 ymin += bound.ymin; 00525 zmin += bound.zmin; 00526 xmax += bound.xmin; 00527 ymax += bound.ymin; 00528 zmax += bound.zmin; 00529 }
void enlarge | ( | T | f | ) | [inline] |
void fusion | ( | T | x, | |
T | y, | |||
T | z | |||
) | [inline] |
void fusion | ( | Vector< T > | vect | ) | [inline] |
void fusion | ( | RBound< T > | bound | ) | [inline] |
Definition at line 478 of file Vector.h.
Referenced by BREP_SHELL::CloseData(), BREP_SOLID::CloseData(), BREP_CONTOUR::CloseFacet(), jbxl::cut_object_MSGraph(), and jbxl::get_boundary_MSGraph().
00478 { 00479 xmin = Min(xmin, bound.xmin); 00480 ymin = Min(ymin, bound.ymin); 00481 zmin = Min(zmin, bound.zmin); 00482 xmax = Max(xmax, bound.xmax); 00483 ymax = Max(ymax, bound.ymax); 00484 zmax = Max(zmax, bound.zmax); 00485 }
void init | ( | void | ) | [inline] |
void multiple | ( | T | f | ) | [inline] |
bool outofBounds | ( | T | x, | |
T | y, | |||
T | z | |||
) | [inline] |
bool outofBounds | ( | Vector< T > | vect | ) | [inline] |
void set | ( | T | XMin = (T)0 , |
|
T | XMax = (T)0 , |
|||
T | YMin = (T)0 , |
|||
T | YMax = (T)0 , |
|||
T | ZMin = (T)0 , |
|||
T | ZMax = (T)0 , |
|||
T | TMin = (T)0 , |
|||
T | TMax = (T)0 | |||
) | [inline] |
Definition at line 439 of file Vector.h.
Referenced by BREP_CONTOUR::BREP_CONTOUR(), BREP_FACET::BREP_FACET(), BREP_SHELL::BREP_SHELL(), BREP_SOLID::BREP_SOLID(), jbxl::get_boundary_MSGraph(), jbxl::readGraphicSlices(), and MSGraph< T >::set().
00439 { 00440 xmin = XMin; 00441 ymin = YMin; 00442 zmin = ZMin; 00443 xmax = XMax; 00444 ymax = YMax; 00445 zmax = ZMax; 00446 tmin = TMin; 00447 tmax = TMax; 00448 }
T xmax |
Definition at line 421 of file Vector.h.
Referenced by jbxl::cat_MSGraph(), RBound< int >::commonarea(), BREP_FACET::ComputePlaneEquation(), jbxl::copyCmnHead2MSGraph(), jbxl::copyMSGraph2CmnHead(), jbxl::cut_object_MSGraph(), jbxl::disJunctBounds(), RBound< int >::fusion(), jbxl::grab_MSGraph(), jbxl::out_around_MSGraph(), jbxl::readGraphicSlices(), MSGraph< T >::set(), ExMSGraph< T >::set(), ExCmnHead::set(), and jbxl::writeGraphicFile().
T xmin |
Definition at line 420 of file Vector.h.
Referenced by jbxl::cat_MSGraph(), RBound< int >::commonarea(), BREP_FACET::ComputePlaneEquation(), jbxl::copyCmnHead2MSGraph(), jbxl::copyMSGraph2CmnHead(), jbxl::cut_object_MSGraph(), RBound< int >::cutdown(), jbxl::disJunctBounds(), RBound< int >::fusion(), MSGraph< T >::get_vPoint(), jbxl::grab_MSGraph(), jbxl::out_around_MSGraph(), MSGraph< T >::put_vPoint(), jbxl::readGraphicSlices(), MSGraph< T >::set(), ExMSGraph< T >::set(), ExCmnHead::set(), MSGraph< T >::set_vPoint(), and jbxl::writeGraphicFile().
T ymax |
Definition at line 423 of file Vector.h.
Referenced by jbxl::cat_MSGraph(), RBound< int >::commonarea(), BREP_FACET::ComputePlaneEquation(), jbxl::copyCmnHead2MSGraph(), jbxl::copyMSGraph2CmnHead(), jbxl::cut_object_MSGraph(), jbxl::disJunctBounds(), RBound< int >::fusion(), jbxl::grab_MSGraph(), jbxl::out_around_MSGraph(), jbxl::readGraphicSlices(), MSGraph< T >::set(), ExMSGraph< T >::set(), ExCmnHead::set(), and jbxl::writeGraphicFile().
T ymin |
Definition at line 422 of file Vector.h.
Referenced by jbxl::cat_MSGraph(), RBound< int >::commonarea(), BREP_FACET::ComputePlaneEquation(), jbxl::copyCmnHead2MSGraph(), jbxl::copyMSGraph2CmnHead(), jbxl::cut_object_MSGraph(), RBound< int >::cutdown(), jbxl::disJunctBounds(), RBound< int >::fusion(), MSGraph< T >::get_vPoint(), jbxl::grab_MSGraph(), jbxl::out_around_MSGraph(), MSGraph< T >::put_vPoint(), jbxl::readGraphicSlices(), MSGraph< T >::set(), ExMSGraph< T >::set(), ExCmnHead::set(), MSGraph< T >::set_vPoint(), and jbxl::writeGraphicFile().
T zmax |
Definition at line 425 of file Vector.h.
Referenced by jbxl::cat_MSGraph(), RBound< int >::commonarea(), BREP_FACET::ComputePlaneEquation(), jbxl::copyCmnHead2MSGraph(), jbxl::copyMSGraph2CmnHead(), jbxl::cut_object_MSGraph(), jbxl::disJunctBounds(), RBound< int >::fusion(), jbxl::grab_MSGraph(), jbxl::out_around_MSGraph(), jbxl::readGraphicSlices(), MSGraph< T >::set(), ExMSGraph< T >::set(), ExCmnHead::set(), and jbxl::writeGraphicFile().
T zmin |
Definition at line 424 of file Vector.h.
Referenced by jbxl::cat_MSGraph(), RBound< int >::commonarea(), BREP_FACET::ComputePlaneEquation(), jbxl::copyCmnHead2MSGraph(), jbxl::copyMSGraph2CmnHead(), jbxl::cut_object_MSGraph(), RBound< int >::cutdown(), jbxl::disJunctBounds(), RBound< int >::fusion(), MSGraph< T >::get_vPoint(), jbxl::grab_MSGraph(), jbxl::out_around_MSGraph(), MSGraph< T >::put_vPoint(), jbxl::readGraphicSlices(), MSGraph< T >::set(), ExMSGraph< T >::set(), ExCmnHead::set(), MSGraph< T >::set_vPoint(), and jbxl::writeGraphicFile().