2025.6.1
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
/***********************************************************************************************************************
|
||||
*
|
||||
* Copyright (c) 2010 - 2022 by Tech Soft 3D, Inc.
|
||||
* Copyright (c) 2010 - 2025 by Tech Soft 3D, Inc.
|
||||
* The information contained herein is confidential and proprietary to Tech Soft 3D, Inc., and considered a trade secret
|
||||
* as defined under civil and criminal statutes. Tech Soft 3D shall pursue its civil and criminal remedies in the event
|
||||
* of unauthorized use or misappropriation of its trade secrets. Use of this information by anyone other than authorized
|
||||
@@ -34,6 +34,8 @@
|
||||
*
|
||||
***********************************************************************************************************************/
|
||||
|
||||
#include <hoops_license.h>
|
||||
|
||||
#define INITIALIZE_A3D_API
|
||||
#define HOOPS_PRODUCT_PUBLISH_STANDARD
|
||||
#include "CreatePRCCubesDef.h"
|
||||
@@ -187,7 +189,7 @@ A3DStatus BuildPDFDocument()
|
||||
// position the 3D annotation in the page
|
||||
A3DPDFRectData sPos;
|
||||
A3D_INITIALIZE_DATA(A3DPDFRectData, sPos);
|
||||
const A3DInt32 iHeigthButView = 15;
|
||||
const A3DInt32 iHeightButView = 15;
|
||||
|
||||
// coordinates are from bottom left of the page
|
||||
sPos.m_iLeft = 100; // lower left x
|
||||
@@ -216,8 +218,8 @@ A3DStatus BuildPDFDocument()
|
||||
|
||||
sPos.m_iLeft = 0; // lower left x
|
||||
sPos.m_iRight = sPos.m_iLeft + 100; // upper right x
|
||||
sPos.m_iTop = iPageHeight - (A3DInt32)i*iHeigthButView; // upper right y
|
||||
sPos.m_iBottom = sPos.m_iTop - iHeigthButView; // lower left y
|
||||
sPos.m_iTop = iPageHeight - (A3DInt32)i*iHeightButView; // upper right y
|
||||
sPos.m_iBottom = sPos.m_iTop - iHeightButView; // lower left y
|
||||
CHECK_RET(A3DPDFPageInsertButton(pPage, ppButtonsViews[i], &sPos));
|
||||
|
||||
// set actions on buttons
|
||||
@@ -266,7 +268,7 @@ int main(int, A3DUTF8Char**)
|
||||
#endif
|
||||
|
||||
// init A3DLIB library - automatically handled init/terminate
|
||||
A3DSDKHOOPSPublishLoader sHoopsPublishLoader(_T(HOOPS_BINARY_DIRECTORY));
|
||||
A3DSDKHOOPSPublishLoader sHoopsPublishLoader(_T(HOOPS_BINARY_DIRECTORY), HOOPS_LICENSE);
|
||||
CHECK_RET(sHoopsPublishLoader.m_eSDKStatus);
|
||||
CHECK_RET(A3DDllSetCallbacksMemory(CheckMalloc, CheckFree));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user