RBound< T > Class Template Reference

#include <Vector.h>

Collaboration diagram for RBound< T >:
Collaboration graph
[legend]

List of all members.

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

xmin
 x軸境界の最小値.
xmax
 x軸境界の最大値.
ymin
 y軸境界の最小値.
ymax
 y軸境界の最大値.
zmin
 z軸境界の最小値.
zmax
 z軸境界の最大値.
tmin
 汎用.
tmax
 汎用.

Detailed Description

template<typename T = int>
class jbxl::RBound< T >

template <typename t="int"> class RBound

3Dデータの境界情報を保存する型.

Definition at line 417 of file Vector.h.


Constructor & Destructor Documentation

RBound ( XMin = (T)0,
XMax = (T)0,
YMin = (T)0,
YMax = (T)0,
ZMin = (T)0,
ZMax = (T)0,
TMin = (T)0,
TMax = (T)0 
) [inline]

Definition at line 431 of file Vector.h.

00431                                                                                                                    {
00432         set(XMin, XMax, YMin, YMax, ZMin, ZMax, TMin, TMax);
00433     }

virtual ~RBound (  )  [inline, virtual]

Definition at line 435 of file Vector.h.

00435 {}


Member Function Documentation

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     }

Here is the caller graph for this function:

void cutdown ( x,
y,
z 
) [inline]

Definition at line 542 of file Vector.h.

00542                                 {
00543         xmin += x;
00544         ymin += y;
00545         zmin += z;
00546         xmax += x;
00547         ymax += y;
00548         zmax += z;
00549     }

void cutdown ( Vector< T >  vect  )  [inline]

Definition at line 532 of file Vector.h.

00532                                  {
00533         xmin += vect.x;
00534         ymin += vect.y;
00535         zmin += vect.z;
00536         xmax += vect.x;
00537         ymax += vect.y;
00538         zmax += vect.z;
00539     }

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     }

Here is the caller graph for this function:

void enlarge ( f  )  [inline]

Definition at line 456 of file Vector.h.

Referenced by jbxl::cut_object_MSGraph().

00456                        {
00457         xmin -= f;
00458         ymin -= f;
00459         zmin -= f;
00460         xmax += f;
00461         ymax += f;
00462         zmax += f;
00463     }

Here is the caller graph for this function:

void fusion ( x,
y,
z 
) [inline]

Definition at line 498 of file Vector.h.

00498                                {
00499         xmin = Min(xmin, x);
00500         ymin = Min(ymin, y);
00501         zmin = Min(zmin, z);
00502         xmax = Max(xmax, x);
00503         ymax = Max(ymax, y);
00504         zmax = Max(zmax, z);
00505     }

void fusion ( Vector< T >  vect  )  [inline]

Definition at line 488 of file Vector.h.

00488                                 {
00489         xmin = Min(xmin, vect.x);
00490         ymin = Min(ymin, vect.y);
00491         zmin = Min(zmin, vect.z);
00492         xmax = Max(xmax, vect.x);
00493         ymax = Max(ymax, vect.y);
00494         zmax = Max(zmax, vect.z);
00495     }

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     }

Here is the caller graph for this function:

void init ( void   )  [inline]

Definition at line 450 of file Vector.h.

Referenced by MSGraph< T >::init().

00450 { xmin = xmax = ymin = ymax = zmin = zmax = tmin = tmax = (T)0;}

Here is the caller graph for this function:

void multiple ( f  )  [inline]

Definition at line 465 of file Vector.h.

00465                         {
00466         xmin *= f;
00467         ymin *= f;
00468         zmin *= f;
00469         xmax *= f;
00470         ymax *= f;
00471         zmax *= f;
00472     }

bool outofBounds ( x,
y,
z 
) [inline]

Definition at line 559 of file Vector.h.

00559                                      {
00560         return  x < xmin || x > xmax ||
00561                 y < ymin || y > ymax ||
00562                 z < zmin || z > zmax;
00563     }

bool outofBounds ( Vector< T >  vect  )  [inline]

Definition at line 552 of file Vector.h.

00552                                       {
00553         return  vect.x < xmin || vect.x > xmax ||
00554                 vect.y < ymin || vect.y > ymax ||
00555                 vect.z < zmin || vect.z > zmax;
00556     }

void set ( XMin = (T)0,
XMax = (T)0,
YMin = (T)0,
YMax = (T)0,
ZMin = (T)0,
ZMax = (T)0,
TMin = (T)0,
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     }       

Here is the caller graph for this function:


Member Data Documentation

T tmax

Definition at line 427 of file Vector.h.

T tmin

Definition at line 426 of file Vector.h.

T xmax
T xmin
T ymax
T ymin
T zmax
T zmin

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

Generated on 15 Nov 2023 for JunkBox_Lib++ (for Windows) by  doxygen 1.6.1