CFx SDK Documentation 2026 SP0
Loading...
Searching...
No Matches
SyScaleList.h
Go to the documentation of this file.
1
2// Copyright (C) 2002-2024, 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-2024 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#pragma once
25
26#include "ModelDocObjExports.h"
27#include "DbObjectId.h"
28#include "IdArrays.h"
29#include "StringArray.h"
30#include "Ge/GeDoubleArray.h"
31
36{
37public:
39 void init(OdDbDatabase* pDb, const OdDbObjectId* id = NULL, const OdString* name = NULL);
40
43 OdDbObjectId findScaleId(double scale, const OdDbDatabase* pDb) const;
44 OdDbObjectId findScaleId(double scale, bool) const;
45
46protected:
48
49public:
52 int fromParentIdx() const;
53 void getLists(OdStringArray& names, OdDbObjectIdArray& ids, OdGeDoubleArray& scales) const;
55
56 static OdResult getScale(double& scale, const OdDbObjectId& id);
57
58private:
59 OdStringArray m_aNames;
60 OdGeDoubleArray m_aScales;
61 OdDbObjectIdArray m_aIds;
62};
scale
OdArray< double, OdMemoryAllocator< double > > OdGeDoubleArray
OdArray< OdDbObjectId, OdClrMemAllocator< OdDbObjectId > > OdDbObjectIdArray
Definition IdArrays.h:53
#define MODELDOCOBJ_EXPORT
OdResult
Definition OdResult.h:29
OdArray< OdString > OdStringArray
Definition StringArray.h:32
typename OdMemoryAllocator< double >::size_type size_type
Definition OdArray.h:837
OdDbObjectId findScaleId(double scale, const OdString &name) const
void getLists(OdStringArray &names, OdDbObjectIdArray &ids, OdGeDoubleArray &scales) const
OdDbObjectIdArray::size_type findScaleIdx(const OdString &name) const
OdDbObjectId findScaleId(double scale, const OdDbDatabase *pDb) const
OdGeDoubleArray::size_type findClosestScaleIdx(double scale) const
bool getScale(OdGeDoubleArray::size_type index, OdDbObjectId &id, double &scale) const
OdDbObjectIdArray::size_type findScaleIdx(const OdDbObjectId &) const
OdDbObjectId findScaleId(double scale, bool) const
void init(OdDbDatabase *pDb, const OdDbObjectId *id=NULL, const OdString *name=NULL)
static OdResult getScale(double &scale, const OdDbObjectId &id)
int fromParentIdx() const
OdDbObjectId findNextBiggerScaleFactor(const OdDbObjectId &id, double scale) const
GLuint index
Definition gles2_ext.h:265
GLuint const GLchar * name
Definition gles2_ext.h:265