CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
GsBlockRefNodeDesc.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
24#ifndef __OD_GS_BLOCK_REF_NODE_DESC__
25#define __OD_GS_BLOCK_REF_NODE_DESC__
26
27#include "TD_PackPush.h"
28
29//OdGsBlockRefNodeDesc is implemented as a class with implementation hidden in m_imp
30//and a reference counter for it.
31//It allows to use lightweighted copies if OdGsBlockRefNodeDesc and store it both as a key
32//in shared definitions map and as OdGsSharedRefDefinition data member.
33
34class OdGsBlockRefNodeDescImpl;
36class OdGeScale3d;
38
45{
46public:
47 OdGsBlockRefNodeDesc(const OdDbStub* layoutBlockId, const OdGiSubEntityTraitsData& tr,
48 const OdGeScale3d& scale, bool bUsePlotStyles, const OdGiAnnoScaleSet& annoScales);
51
52 OdGsBlockRefNodeDesc(): m_imp(NULL) {}
55 const OdGsBlockRefNodeDescImpl* getImpl() const { ODA_ASSERT(m_imp); return m_imp; }
56 const OdGeScale3d& scale() const;
57
58 void save(OdGsFiler *pFiler) const;
59 void load(OdGsFiler *pFiler);
60
61private:
62 OdGsBlockRefNodeDescImpl* m_imp;
63};
64
65#include "TD_PackPop.h"
66
67#endif // __OD_GS_BLOCK_REF_NODE_DESC__
#define ODA_ASSERT(exp)
Definition: DebugStuff.h:57
scale
Definition: DimVarDefs.h:1684
#define GS_TOOLKIT_EXPORT
Definition: GsExport.h:37
bool operator<(const OdString &s1, const OdString &s2)
Definition: OdString.h:1309
const OdGeScale3d & scale() const
OdGsBlockRefNodeDesc(const OdGsBlockRefNodeDesc &c)
void load(OdGsFiler *pFiler)
const OdGsBlockRefNodeDescImpl * getImpl() const
OdGsBlockRefNodeDesc(const OdDbStub *layoutBlockId, const OdGiSubEntityTraitsData &tr, const OdGeScale3d &scale, bool bUsePlotStyles, const OdGiAnnoScaleSet &annoScales)
void save(OdGsFiler *pFiler) const
const GLfloat * v
Definition: gles2_ext.h:315