00001 #include "GLBox.h" 00002 #include "Box.h" 00003 #include "BoxDrawArray.h" 00004 00005 using namespace X3DTK; 00006 00007 GLBox::GLBox() 00008 : X3DGLGeometry3DNode(), _size(SFVec3f(0.0f, 0.0f, 0.0f)), _boxArray(0) 00009 { 00010 defineTagName("GLBox", "GLGeometry3D"); 00011 } 00012 00013 GLBox::GLBox(const GLBox &B) 00014 : X3DGLGeometry3DNode(B), _size(B._size), _boxArray(0) 00015 { 00016 defineTagName("GLBox", "GLGeometry3D"); 00017 } 00018 00019 SFNode GLBox::clone() const 00020 { 00021 return new GLBox(*this); 00022 } 00023 00024 GLBox::~GLBox() 00025 { 00026 _boxArray->removeInstance(); 00027 } 00028