/* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* * Copyright (C) 2004-2012 HUBzero Foundation, LLC * * Author: Leif Delgass */ #ifndef VTKVIS_BOX_H #define VTKVIS_BOX_H #include #include #include #include #include "Shape.h" #include "DataSet.h" namespace VtkVis { /** * \brief VTK PolyData box * * This class creates a mesh box */ class Box : public Shape { public: Box(); virtual ~Box(); virtual const char *getClassName() const { return "Box"; } void setSize(double xlen, double ylen, double zlen) { if (_box != NULL) { _box->SetXLength(xlen); _box->SetYLength(ylen); _box->SetZLength(zlen); } } void flipNormals(bool state); private: virtual void update(); vtkSmartPointer _box; }; } #endif