1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-02 17:46:22 +03:00
occt/samples/qt/VoxelDemo/inc/Application.h
bugmster 480bf81e37 0024428: Implementation of LGPL license
Update of OCCT samples source code due to moving to LGPL license
2013-12-17 12:43:15 +04:00

115 lines
2.3 KiB
C++
Executable File

#ifndef APPLICATION_H
#define APPLICATION_H
#include <qmainwindow.h>
#include <AIS_Shape.hxx>
#include <Voxel_Prs.hxx>
#include <Voxel_BoolDS.hxx>
#include <Voxel_ColorDS.hxx>
#include "Viewer.h"
class Application: public QMainWindow
{
Q_OBJECT
public:
Application();
~Application();
protected:
void closeEvent( QCloseEvent* );
private slots:
void box();
void cylinder();
void torus();
void sphere();
void choose();
void load( const QString & );
void load( const TopoDS_Shape & );
void save();
void open();
void testBoolDS();
void testColorDS();
void testFloatDS();
void testOctBoolDS();
void testROctBoolDS();
void testFuseBoolDS();
void testFuseColorDS();
void testFuseFloatDS();
void testCutBoolDS();
void testCutColorDS();
void testCutFloatDS();
void convert2bool();
void convert2color();
void convert(const int );
void setNbX();
void setNbY();
void setNbZ();
void setScanSide();
void setVolumicBoolValue();
void setVolumicColorValue();
void setQuadrangleSize();
void setPointSize();
void setColorMinValue();
void setColorMaxValue();
void setUsageOfGLlists();
void setDisplayedXMin();
void setDisplayedXMax();
void setDisplayedYMin();
void setDisplayedYMax();
void setDisplayedZMin();
void setDisplayedZMax();
void displayPoints();
void displayNearestPoints();
void displayBoxes();
void displayNearestBoxes();
void displayColorScale();
void displayWaves();
void displayCut();
void displayCollisions();
void about();
private:
void display(Voxel_VoxelDisplayMode );
void initPrs();
Viewer* myViewer;
Handle(AIS_Shape) myShape;
Handle(Voxel_Prs) myVoxels;
Voxel_BoolDS* myBoolVoxels;
Voxel_ColorDS* myColorVoxels;
int myNbX;
int myNbY;
int myNbZ;
unsigned char myScanSide;
bool myVolumicBoolValue;
unsigned char myVolumicColorValue;
int myQuadrangleSize;
int myPointSize;
unsigned char myColorMinValue;
unsigned char myColorMaxValue;
double myDisplayedXMin;
double myDisplayedXMax;
double myDisplayedYMin;
double myDisplayedYMax;
double myDisplayedZMin;
double myDisplayedZMax;
};
#endif // APPLICATION_H