13CAD
CAD-like software based on C++, Qt and VTK.
 All Classes Files Functions Variables Friends
Variables
mainwindow.cpp File Reference

Main Qt file for the graphical user interface code. More...

#include <vtkSmartPointer.h>
#include <vtkActor.h>
#include <vtkProperty.h>
#include <vtkCamera.h>
#include <vtkPolyData.h>
#include <vtkDataSetMapper.h>
#include <vtkRenderWindow.h>
#include <vtkRenderWindowInteractor.h>
#include <vtkRenderer.h>
#include <vtkNamedColors.h>
#include <vtkNew.h>
#include <vtkPlane.h>
#include <vtkGenericOpenGLRenderWindow.h>
#include <vtkLight.h>
#include <vtkAxesActor.h>
#include <vtkTransform.h>
#include <vtkCellArray.h>
#include <vtkCellType.h>
#include <vtkPoints.h>
#include <vtkUnstructuredGrid.h>
#include <vtkTetra.h>
#include <vtkPyramid.h>
#include <vtkHexahedron.h>
#include <vtkMassProperties.h>
#include <vtkTriangleFilter.h>
#include <vtkShrinkFilter.h>
#include <vtkClipDataSet.h>
#include <vtkSTLReader.h>
#include <vtkPolyDataMapper.h>
#include <vtkWindowToImageFilter.h>
#include <vtkPNGWriter.h>
#include <QDebug>
#include "mainwindow.h"
#include "ui_mainwindow.h"
#include "helpdialog.h"
#include "clipdialog.h"
#include "model.h"

Variables

vtkNew
< vtkGenericOpenGLRenderWindow > 
renderWindow
 
vtkSmartPointer< vtkRenderer > renderer = vtkSmartPointer<vtkRenderer>::New()
 
vtkSmartPointer< vtkSTLReader > reader
 
vtkSmartPointer< vtkNamedColors > colors = vtkSmartPointer<vtkNamedColors>::New()
 
vtkSmartPointer< vtkLight > light = vtkSmartPointer<vtkLight>::New()
 
vtkSmartPointer< vtkTransform > transform = vtkSmartPointer<vtkTransform>::New()
 
vtkSmartPointer< vtkAxesActor > axes = vtkSmartPointer<vtkAxesActor>::New()
 
vtkSmartPointer< vtkClipDataSet > clipFilter
 
vtkSmartPointer< vtkPlane > clipPlane
 
float clipX = 0
 
float clipY = 0
 
float clipZ = 0
 
float clipNormalX = -1
 
float clipNormalY = 0
 
float clipNormalZ = 0
 
float prevClipX = 0
 
float prevClipY = 0
 
float prevClipZ = 0
 
float prevClipNormalX = -1
 
float prevClipNormalY = 0
 
float prevClipNormalZ = 0
 
std::vector< vtkSmartPointer
< vtkDataSetMapper > > 
mappers
 
std::vector< vtkSmartPointer
< vtkActor > > 
actors
 
std::vector< vtkSmartPointer
< vtkUnstructuredGrid > > 
unstructuredGrids
 
std::vector< vtkSmartPointer
< vtkTetra > > 
tetras
 
std::vector< vtkSmartPointer
< vtkPyramid > > 
pyras
 
std::vector< vtkSmartPointer
< vtkHexahedron > > 
hexas
 
QString inputFileName
 
bool modelLoaded = false
 
bool clipFilterEnabled = false
 
bool clipWindowShown = false
 
QString surfAreaString
 
QString volumeString
 
QString cellString
 
QString pointString
 

Detailed Description

Main Qt file for the graphical user interface code.

Author
Riccardo Di Maio
Version
1.0 15/03/19