32 #include "DGtal/base/Common.h" 33 #include "DGtal/io/viewers/Viewer3D.h" 34 #include "DGtal/io/DrawWithDisplay3DModifier.h" 35 #include "DGtal/io/Color.h" 36 #include "DGtal/helpers/StdDefs.h" 37 #include "DGtal/shapes/Shapes.h" 41 using namespace DGtal;
51 int main(
int argc,
char** argv )
54 QApplication application(argc,argv);
59 viewer.setWindowTitle(
"simpleViewer");
93 viewer << Display3D<Space, KSpace>::updateDisplay;
95 bool res = application.exec();
102 trace.
emphase() << ( res ?
"Passed." :
"Error." ) << endl;
void beginBlock(const std::string &keyword="")
virtual void show()
Overload QWidget method in order to add a call to updateList() method (to ensure that the lists are w...
PointVector< dim, double, std::array< double, dim > > getNormalized() const
Factory for GPL Display3D:
bool init(const Point &lower, const Point &upper, bool isClosed)
Cell uCell(const PreCell &c) const
DGtal is the top-level namespace which contains all DGtal functions and types.
Represents a signed cell in a cellular grid space by its Khalimsky coordinates and a boolean value...
int main(int argc, char **argv)
void addQuadWithNormal(const RealPoint &p1, const RealPoint &p2, const RealPoint &p3, const RealPoint &p4, const RealPoint &n, const bool enableReorientation, const bool enableDoubleFace=false)
Aim: This class is a model of CCellularGridSpaceND. It represents the cubical grid as a cell complex...
SCell sCell(const SPreCell &c) const
std::string className() const
Modifier class in a Display3D stream. Useful to choose your own mode for a given class. Realizes the concept CDrawableWithDisplay3D.