mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0021189: Clean up KAS:dev:ros and Products
Removal of VoxelClient VoxelDemo sample is redesigned so that it doesn't require compilation of OpenGl classes. It refers to TKOpenGl.dll as to an external library. Some minor bugs are fixed in OCAF and Viewer 3d standard MFC samples
This commit is contained in:
58
samples/qt/VoxelDemo/src/ConversionThread.cpp
Normal file
58
samples/qt/VoxelDemo/src/ConversionThread.cpp
Normal file
@@ -0,0 +1,58 @@
|
||||
#include "ConversionThread.h"
|
||||
|
||||
ConversionThread::ConversionThread():QThread(),
|
||||
/*myConverter(0),*/myFastConverter(0),
|
||||
myVolumicValue(0),myScanSide(1),
|
||||
myThreadIndex(1)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
ConversionThread::~ConversionThread()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
void ConversionThread::setConverter(Voxel_Converter* converter)
|
||||
{
|
||||
myConverter = converter;
|
||||
myFastConverter = 0;
|
||||
}
|
||||
*/
|
||||
|
||||
void ConversionThread::setConverter(Voxel_FastConverter* converter)
|
||||
{
|
||||
myFastConverter = converter;
|
||||
//myConverter = 0;
|
||||
}
|
||||
|
||||
void ConversionThread::setVolumicValue(const int value)
|
||||
{
|
||||
myVolumicValue = value;
|
||||
}
|
||||
|
||||
void ConversionThread::setScanSide(const int side)
|
||||
{
|
||||
myScanSide = side;
|
||||
}
|
||||
|
||||
void ConversionThread::setThreadIndex(const int ithread)
|
||||
{
|
||||
myThreadIndex = ithread;
|
||||
}
|
||||
|
||||
int* ConversionThread::getProgress()
|
||||
{
|
||||
return &myProgress;
|
||||
}
|
||||
|
||||
void ConversionThread::run()
|
||||
{
|
||||
if (/*!myConverter && */!myFastConverter)
|
||||
return;
|
||||
//if (myConverter)
|
||||
// myConverter->Convert(myProgress, myVolumicValue, myScanSide, myThreadIndex);
|
||||
//else
|
||||
myFastConverter->Convert(myProgress, myThreadIndex);
|
||||
}
|
Reference in New Issue
Block a user