Init
This commit is contained in:
74
exchange/exchangesource/CreatePRCCubes/modules/CreateViews.h
Normal file
74
exchange/exchangesource/CreatePRCCubes/modules/CreateViews.h
Normal file
@@ -0,0 +1,74 @@
|
||||
/***********************************************************************************************************************
|
||||
*
|
||||
* Copyright (c) 2010 - 2022 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
|
||||
* employees of Tech Soft 3D, Inc. is granted only under a written non-disclosure agreement, expressly prescribing the
|
||||
* scope and manner of such use.
|
||||
*
|
||||
***********************************************************************************************************************/
|
||||
/**
|
||||
* Sample CreatePRCCubes
|
||||
* file CreateViews.cpp
|
||||
* This file is containing the function allowing to create views with optionnal elements.
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
***********************************************************************************************************************/
|
||||
#pragma once
|
||||
|
||||
#include "../CreatePRCCubesDef.h"
|
||||
|
||||
#include "CreateLinkedItem.h"
|
||||
#include "CreateGraphics.h"
|
||||
|
||||
//######################################################################################################################
|
||||
|
||||
static const double stCameraFovX = 1000;
|
||||
static const double stCameraFovY = 1000;
|
||||
|
||||
static const A3DVector3dData stCameraPosDefault = {0, 2000, 0, 0};
|
||||
static const A3DVector3dData stCameraLookAtDefault = { 0, 300, 1050, 1050 };
|
||||
|
||||
//######################################################################################################################
|
||||
A3DStatus setViewCameraPlacement(A3DMkpViewData* pMkpViewData,
|
||||
A3DVector3dData* pCameraPos,
|
||||
A3DVector3dData* pCameraLookAt,
|
||||
A3DDouble dXFovy, A3DDouble dYFovy);
|
||||
|
||||
A3DStatus addViewLinkedItem(A3DMkpViewData* pMkpViewData,
|
||||
A3DUns32 uiLinkedItemsSize,
|
||||
A3DMiscMarkupLinkedItem** ppLinkedItems);
|
||||
|
||||
A3DStatus setIsDefaultView(A3DMkpViewData* pMkpViewData,
|
||||
A3DBool bIsDefaultView);
|
||||
|
||||
A3DStatus setViewEntitiesOffsetPosition(A3DMkpViewData* pMkpViewData,
|
||||
A3DUns32 uiLinkedPOsSize,
|
||||
A3DAsmProductOccurrence** ppLinkedPOs,
|
||||
A3DMiscCartesianTransformation** ppOffsetTransformation);
|
||||
|
||||
A3DStatus setViewEntitiesGraphics(A3DMkpViewData* pMkpViewData,
|
||||
A3DUns32 uiLinkedPOsSize,
|
||||
A3DAsmProductOccurrence** ppLinkedPOs,
|
||||
A3DRootBaseWithGraphicsData* inGraphicsData);
|
||||
|
||||
// The following function is only to be used when the annotations are owned by the same PO as the view will be.
|
||||
A3DStatus setViewAnnotations(A3DMkpViewData* pMkpViewData,
|
||||
A3DUns32 uiAnnotationsSize,
|
||||
A3DMkpAnnotationEntity ** ppAnnotations);
|
||||
|
||||
// The following function is to be used when the annotations are owned by the PO that is a child of the PO that own the view.
|
||||
A3DStatus setViewAnnotations(A3DMkpViewData* pMkpViewData,
|
||||
A3DUns32 uiAnnotationsSize,
|
||||
A3DMkpAnnotationEntity ** ppAnnotations,
|
||||
A3DAsmProductOccurrence** ppPOOwners);
|
||||
|
||||
A3DStatus createView(A3DMkpView** ppOutMkupView,
|
||||
A3DMkpViewData* pMkpViewData,
|
||||
const A3DUTF8Char* inName);
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user