11#pragma warning( disable : 4251)
90 bool save(
const char* fileName);
95 friend class USBScanner;
96 friend class Emulator;
97 friend class GigEScanner;
144 std::vector<SBImage> images;
222 bool save(
const char* fileName);
228 bool load(
const char* fileName);
266 bool save(
const char* fileName);
273 bool load(
const char* fileName);
317 static const int MAT_SIZE = 16;
331 float mMat[MAT_SIZE];
438 bool save(
const char* fileName);
#define SBSDK_API
Definition: SBSDK_API.h:15
SBTypes Header File. Structure types and Class Enum types defining parameter options and device infor...
Stores and manages information related to the scanner calibration.
Definition: SBData.h:152
void setText(const char *text, size_t size)
set calibration by using xml text
uint8_t * getBinary()
get calibration data in binary format
void setBinary(uint8_t *bin, size_t size)
set calibration by using binary calibration data
bool load(const char *fileName)
load calibration data from the file
virtual ~SBCalib()
Class Decosntructor.
SBCalib()
Class Constructor.
size_t getBinarySize()
get size of the binary data size
void setCalibBoardSize(float boardSize)
set calibration board size
bool save(const char *fileName)
save calibration data to the file
void getZFilter(float &zNear, float &zFar)
get z filter value
void setZFilter(float zNear, float zFar)
set z filter value
float getCalibBoardSize()
get calibration board size
bool exportXML(const char *fileName)
export binary data in xml format
std::shared_ptr< PLG::PLGCalib > mpPLGCalib
Definition: SBData.h:238
Contains Image and properties.
Definition: SBData.h:36
virtual ~SBImage()
Class Deconstructor.
uint32_t height()
Returns height of the image.
std::shared_ptr< PLG::PLGImage > mpPLGImg
Definition: SBData.h:92
uint8_t * data()
Returns byte data afrray of the image.
size_t size()
Returns byte size of the image.
uint32_t bytePerPixel()
Returns number of bytes per pixel.
bool save(const char *fileName)
Save file to disk. Returns if success.
SBImage()
Default Constructor. SBImage Default Constructor.
SBCameraIDEnums CameraID()
Get camera ID.
uint32_t width()
Returns width of the image.
SBImage Container.
Definition: SBData.h:108
size_t size()
Returns size of the SBImage vector.
virtual ~SBImageList()
Class Deconstructor. Override to modify the behavior once an instance is deleted.
void push_back(SBImage &img)
Appends an element to the list.
void clear()
Clears contents of SBImage vector.
SBImageList()
Default Constructor.
Mesh Class Definition. SBMesh contains the information related to the vertices and vaces,...
Definition: SBData.h:342
void getVertexColors(SBColor *colorArray)
Returns the number of vertex color values in the mesh.
bool empty()
Returns if it is empty Returns true if it is empty.
bool applyTransform(const SBTransform &transform)
Apply transform to the mesh. Returns if success.
void getNormals(SBVector *normalArray)
Returns the number of normals in the mesh.
SBImage mVImage
Definition: SBData.h:457
SBMesh()
Default class constructor.
size_t getNumVertices()
Returns the number of vertices in the mesh.
void getUVs(SBUv *uvArray)
Returns the number of UVs in the mesh.
std::shared_ptr< PLG::PLGMesh > mpPLGMesh
Definition: SBData.h:455
bool getTextureImage(SBImage &img)
Returns the texture images.
void getVertices(SBVector *vertexArray)
Returns the number of vertices in the mesh.
bool save(const char *fileName)
Save mesh to disk. Returns if success. Supported Formats:
size_t getNumFaces()
Returns the number of faces in the mesh.
virtual ~SBMesh()
Default class deconstructor.
SBImage mTextureImage
Definition: SBData.h:456
size_t getNumNormals()
Returns the number of normals in the mesh.
size_t getNumVertexColors()
Returns the number of vertex color.
void getFaces(SBFace *faceArray)
Returns the number of faces in the mesh.
size_t getNumUVs()
Returns the number of uv.
Class containing scan Images and accessing functions.
Definition: SBData.h:248
bool save(const char *fileName)
Save .pbs file to disk. Returns if success.
uint32_t getNumImages()
Returns the number of images taken for the scan.
virtual ~SBScan()
Class Decosntructor.
std::shared_ptr< PLG::PLGScan > mpPLGScan
Definition: SBData.h:303
std::shared_ptr< PLG::PLGCalib > mpPLGTextureCalib
Definition: SBData.h:305
bool getTextureImage(SBImage &img)
Returns the texture images corresponding the given camera id.
bool load(const char *fileName)
Load .pbs file from disk. Returns if success.
SBScan()
Class Constructor.
std::shared_ptr< PLG::PLGCalib > mpPLGCalib
Definition: SBData.h:304
bool empty()
Returns if it is empty Returns true if it is empty.
void getCameraImages(int camIdx, SBImageList &imageList)
Returns the images corresponding the given camera id.
Definition: ISBScanner.h:20
SBCameraIDEnums
Definition: SBTypes.h:127
RGBA color structure.
Definition: SBTypes.h:203
Contains vector indexes defining a mesh face.
Definition: SBTypes.h:215
Definition: SBTypes.h:193
3 Dimensional Vector
Definition: SBTypes.h:182