1 #ifndef GLDRAW_BOX_WIDGET_H 2 #define GLDRAW_BOX_WIDGET_H 5 #include "TransformWidget.h" 6 #include <KrisLibrary/math3d/AABB3D.h> 7 #include <KrisLibrary/math3d/Box3D.h> 8 #include <KrisLibrary/utils/IntTriple.h> 17 void Get(
AABB3D& bb)
const;
18 void Get(
Box3D& bb)
const;
21 virtual bool BeginDrag(
int x,
int y,
Camera::Viewport& viewport,
double& distance);
23 virtual void EndDrag();
25 virtual void SetHighlight(
bool value);
26 virtual void SetFocus(
bool value);
41 int clickX,clickY,dragX,dragY;
A lightweight integer 3-tuple class.
Definition: IntTriple.h:9
A 3D vector class.
Definition: math3d/primitives.h:136
A 3D axis-aligned bounding box.
Definition: AABB3D.h:13
A class containing viewport / camera information. This uses OpenGL coordinate convention in which x i...
Definition: viewport.h:11
Contains all definitions in the GLDraw package.
Definition: AnyGeometry.h:14
An rgba color.
Definition: GLColor.h:9
A 3D boxThe box is the unit cube [0,1]^3 set in the scaled local coordinate system. That is, one corner is at the origin, and it has dimensions [dims.x,dims.y,dims.z] in the coordinates given by {xbasis,ybasis,zbasis}.
Definition: Box3D.h:21