CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
ModelerTools.h
Go to the documentation of this file.
1
2// Copyright (C) 2002-2022, Open Design Alliance (the "Alliance").
3// All rights reserved.
4//
5// This software and its documentation and related materials are owned by
6// the Alliance. The software may only be incorporated into application
7// programs owned by members of the Alliance, subject to a signed
8// Membership Agreement and Supplemental Software License Agreement with the
9// Alliance. The structure and organization of this software are the valuable
10// trade secrets of the Alliance and its suppliers. The software is also
11// protected by copyright law and international treaty provisions. Application
12// programs incorporating this software must include the following statement
13// with their copyright notices:
14//
15// This application incorporates Open Design Alliance software pursuant to a license
16// agreement with Open Design Alliance.
17// Open Design Alliance Copyright (C) 2002-2022 by Open Design Alliance.
18// All rights reserved.
19//
20// By use of this software, its documentation or related materials, you
21// acknowledge and accept the above terms.
23// ModelerTools.h : auxilary functionality of geometry modeler
24
25// Copyright © Menhirs NV. All rights reserved.
26
27//HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH
28
29#ifndef _OD_MODELERTOOLS_INCLUDED_
30#define _OD_MODELERTOOLS_INCLUDED_
31
32//#include "BricsysChanges.h"
33#include "ModelerGeometry.h"
34
35#include "TD_PackPush.h"
36
37typedef void (*MainHistStreamFunc)(void*);
38
39
48{
49protected:
51public:
53
58
64 virtual void beginThreadSafetyMode(unsigned nThreads, const unsigned* aThreads) = 0;
65
70 virtual void endThreadSafetyMode(unsigned nThreads, const unsigned* aThreads) = 0;
71
76 virtual bool startThread() = 0;
77
82 virtual bool stopThread() = 0;
83
87 virtual bool isThreadStarted() const = 0;
88
93 virtual OdResult check3dSolid(const OdDb3dSolid&, OdString& report) = 0;
94
99
112
113 //DOM-IGNORE-BEGIN
114 virtual bool getAdeskTrueCol(void* pEntity, unsigned long& color) = 0;
115 virtual bool getAdeskCol(void* pEntity, unsigned long& color) = 0;
116 virtual int setTestMode(int testMode) = 0;
117 //DOM-IGNORE-END
118
134 const OdDbSubentId& subId1, const OdGeMatrix3d& toWc1,
135 const OdModelerGeometry& obj2, const OdDbSubentId& subId2, const OdGeMatrix3d& toWc2,
136 OdGePoint3d& nearestPt1, OdGePoint3d& nearestPt2) = 0;
137
150 virtual OdResult getClosestPoints(const OdModelerGeometry& obj, const OdDbSubentId& subId,
151 const OdGeMatrix3d& toWc, const OdGeCurve3d& curve,
152 OdGePoint3d& nearestPt1, OdGePoint3d& nearestPt2) = 0;
153
165 virtual OdResult getClosestPoints(const OdModelerGeometry& obj, const OdDbSubentId& subId,
166 const OdGeMatrix3d& toWc, const OdGePoint3d& inPt, OdGePoint3d& nearestPt) = 0;
167
185 virtual OdResult getClosestPoints(const OdModelerGeometry& obj1, const OdDbSubentId& subId1,
186 const OdGeMatrix3d& toWc1,const OdGePoint3dArray& pts2, const OdInt32Array& edges2,
187 OdGePoint3d& nearestPt1, OdGePoint3d& nearestPt2) = 0;
188
197 virtual OdResult cloneAndXform(const OdModelerGeometry& srcModeler, const OdGeMatrix3d& mtx,
198 OdModelerGeometryPtr& pCloneModeler) = 0;
199
209 const OdGeVector3d& direction, OdGePoint3d& maxPoint) = 0;
210
221 const OdGeVector3d& direction, OdGePoint3d& minPoint, OdGePoint3d& maxPoint) = 0;
222};
223
224
233
234#include "TD_PackPop.h"
235
236#endif //_OD_MODELERTOOLS_INCLUDED_
#define DBENT_EXPORT
Definition: DbExport.h:67
void(* MainHistStreamFunc)(void *)
Definition: ModelerTools.h:37
OdSmartPtr< OdModelerTools > OdModelerToolsPtr
Definition: ModelerTools.h:232
OdResult
Definition: OdResult.h:29
virtual OdResult getClosestPoints(const OdModelerGeometry &obj, const OdDbSubentId &subId, const OdGeMatrix3d &toWc, const OdGePoint3d &inPt, OdGePoint3d &nearestPt)=0
virtual OdResult cloneAndXform(const OdModelerGeometry &srcModeler, const OdGeMatrix3d &mtx, OdModelerGeometryPtr &pCloneModeler)=0
virtual int setTestMode(int testMode)=0
virtual OdResult getExtremePoints(const OdModelerGeometry &object, const OdGeVector3d &direction, OdGePoint3d &minPoint, OdGePoint3d &maxPoint)=0
virtual OdResult getClosestPoints(const OdModelerGeometry &obj1, const OdDbSubentId &subId1, const OdGeMatrix3d &toWc1, const OdModelerGeometry &obj2, const OdDbSubentId &subId2, const OdGeMatrix3d &toWc2, OdGePoint3d &nearestPt1, OdGePoint3d &nearestPt2)=0
virtual bool getAdeskCol(void *pEntity, unsigned long &color)=0
virtual OdResult getMaxPoint(const OdModelerGeometry &object, const OdGeVector3d &direction, OdGePoint3d &maxPoint)=0
virtual OdResult deleteModelerBulletins()=0
virtual OdResult check3dSolid(const OdDb3dSolid &, OdString &report)=0
virtual OdResult getClosestPoints(const OdModelerGeometry &obj, const OdDbSubentId &subId, const OdGeMatrix3d &toWc, const OdGeCurve3d &curve, OdGePoint3d &nearestPt1, OdGePoint3d &nearestPt2)=0
virtual bool startThread()=0
ODRX_DECLARE_MEMBERS(OdModelerTools)
virtual void executeInMainHistoryStream(MainHistStreamFunc func, void *data)=0
virtual void beginThreadSafetyMode(unsigned nThreads, const unsigned *aThreads)=0
virtual void endThreadSafetyMode(unsigned nThreads, const unsigned *aThreads)=0
virtual bool isThreadStarted() const =0
virtual bool getAdeskTrueCol(void *pEntity, unsigned long &color)=0
virtual OdResult createHatchFromModelerGeometry(const OdDbEntity &geom, OdDbEntityPtrArray &aHatch)=0
virtual OdResult getClosestPoints(const OdModelerGeometry &obj1, const OdDbSubentId &subId1, const OdGeMatrix3d &toWc1, const OdGePoint3dArray &pts2, const OdInt32Array &edges2, OdGePoint3d &nearestPt1, OdGePoint3d &nearestPt2)=0
virtual bool stopThread()=0
GLenum func
Definition: gles2_ext.h:262
typedef void(APIENTRYP PFNGLACTIVETEXTUREPROC)(GLenum texture)
GLint GLenum GLsizei GLsizei GLint GLsizei const void * data
Definition: gles2_ext.h:110