You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
56 lines
1.1 KiB
C++
56 lines
1.1 KiB
C++
#include "stdafx.h"
|
|
#include "SigmaView.h"
|
|
#include "ImageCut.h"
|
|
|
|
extern "C" __declspec(dllexport)
|
|
void GeoSigma_StartToCutImage(CSigmaView * pView, CutImageInfo * ciInfo)
|
|
{
|
|
pView->StopThreadOfImageCut();
|
|
pView->StartThreadOfImageCut(ciInfo);
|
|
}
|
|
|
|
extern "C" __declspec(dllexport)
|
|
int GeoSigma_StopCutImage(CSigmaView * pView)
|
|
{
|
|
if (pView == 0)
|
|
return -1;
|
|
|
|
pView->StopThreadOfImageCut();
|
|
|
|
return 1;
|
|
}
|
|
|
|
extern "C" __declspec(dllexport)
|
|
int GeoSigma_GetIndexOfFileByCutImage(CSigmaView * pView)
|
|
{
|
|
if (pView == 0)
|
|
return -1;
|
|
|
|
return pView->GetImageCut()->GetIndexOfFileByCut();
|
|
}
|
|
|
|
extern "C" __declspec(dllexport)
|
|
void GeoSigma_StartToFileTransformer(CSigmaView * pView, FileTransformationInfo * ftInfo)
|
|
{
|
|
pView->StopThreadOfFileTransformer();
|
|
pView->StartThreadOfFileTransformer(ftInfo);
|
|
}
|
|
|
|
extern "C" __declspec(dllexport)
|
|
int GeoSigma_StopFileTransformer(CSigmaView * pView)
|
|
{
|
|
if (pView == 0)
|
|
return -1;
|
|
|
|
pView->StopThreadOfFileTransformer();
|
|
return 1;
|
|
}
|
|
|
|
extern "C" __declspec(dllexport)
|
|
int GeoSigma_GetIndexOfFileByFileTransformer(CSigmaView * pView)
|
|
{
|
|
if (pView == 0)
|
|
return -1;
|
|
|
|
return pView->GetFileTransformer()->GetIndexOfFileByTransformation();
|
|
} |