CFx SDK Documentation 2026 SP0
Loading...
Searching...
No Matches
FxBIMSpace.h
Go to the documentation of this file.
1//
2// (C) Copyright 2020-2025 by Graebert GmbH.
3//
4// Permission to use, copy, modify, and distribute this software in
5// object code form for any purpose and without fee is hereby granted,
6// provided that the above copyright notice appears in all copies and
7// that both that copyright notice and the limited warranty and
8// restricted rights notice below appear in all supporting
9// documentation.
10//
11// GRAEBERT PROVIDES THIS PROGRAM "AS IS" AND WITH ALL FAULTS.
12// GRAEBERT SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTY OF
13// MERCHANTABILITY OR FITNESS FOR A PARTICULAR USE. GRAEBERT GMBH
14// DOES NOT WARRANT THAT THE OPERATION OF THE PROGRAM WILL BE
15// UNINTERRUPTED OR ERROR FREE.
16
17#pragma once
18
19#include "FxBIM.h"
20
21#include "FxBIMFloor.h"
22#include "FxBIMBuilding.h"
23
24#include <FMProfile2D.h>
25
26class CFxBIMSpaceImpl;
27
28class CFxBIMSpace;
29typedef std::shared_ptr< CFxBIMSpace > CFxBIMSpacePtr;
30
32{
33 friend class CFxBIMSpaceImpl;
34public:
35 virtual ~CFxBIMSpace();
36
37 static CFxBIMSpacePtr Create( OdDbObjectId idBimDatabase, const OdString& name );
38
39 [[deprecated( "Use version that passes database id as a parameter" )]]
41
42 const OdString& Name() const;
44
46 void SetFloor( CFxBIMFloorPtr pFloor );
47
49 void SetBuilding( CFxBIMBuildingPtr pBuilding );
50
52 std::vector< CFxBIMSpacePtr > Children() const;
53
54 const OdDbObjectId& Geometry() const;
55 void SetGeometry( const OdDbObjectId& geometry );
56
57 const OdGePlane& Plane() const;
58 void SetPlane( const OdGePlane& plane );
59
60 double Height() const;
61 void SetHeight( double height ) const;
62
63protected:
65
66protected:
67 std::shared_ptr< CFxBIMSpaceImpl > m_pImpl;
68};
std::shared_ptr< CFxBIMBuilding > CFxBIMBuildingPtr
#define FXBIM_COMMON_CODE_API
Definition FxBIMDefs.h:5
std::shared_ptr< CFxBIMSpace > CFxBIMSpacePtr
Definition FxBIMEntity.h:50
std::shared_ptr< CFxBIMFloor > CFxBIMFloorPtr
Definition FxBIMEntity.h:53
const OdString & Name() const
std::vector< CFxBIMSpacePtr > Children() const
const OdDbObjectId & Geometry() const
const OdGePlane & Plane() const
std::shared_ptr< CFxBIMSpaceImpl > m_pImpl
Definition FxBIMSpace.h:67
CFxBIMSpacePtr Parent() const
static CFxBIMSpacePtr Create(const OdString &name)
void SetBuilding(CFxBIMBuildingPtr pBuilding)
void SetFloor(CFxBIMFloorPtr pFloor)
void SetGeometry(const OdDbObjectId &geometry)
CFxBIMFloorPtr Floor() const
void SetHeight(double height) const
static CFxBIMSpacePtr Create(OdDbObjectId idBimDatabase, const OdString &name)
double Height() const
CFxBIMBuildingPtr Building() const
virtual ~CFxBIMSpace()
bool IsEqual(CFxBIMSpacePtr p)
friend class CFxBIMSpaceImpl
Definition FxBIMSpace.h:33
void SetPlane(const OdGePlane &plane)
GLuint const GLchar * name
Definition gles2_ext.h:265
GLint GLenum GLsizei GLsizei height
Definition gles2_ext.h:110