CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
FxBIMDrawing.h
Go to the documentation of this file.
1//
2// (C) Copyright 2020-2023 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 <vector>
22
23class CFxBIMDrawingImpl;
24
25class CFxBIMDrawing;
26typedef std::shared_ptr< CFxBIMDrawing > CFxBIMDrawingPtr;
27
28class CFxBIMSection;
30
32{
33 friend class CFxBIMDrawingImpl;
34public:
35 virtual ~CFxBIMDrawing();
36
38
39 const OdString& FileName() const;
40 const OdString& ModelFileName() const;
41 const OdString& SectionName() const;
43 const std::vector< OdDbHandle >& SectionEntities() const;
44 std::vector< OdDbHandle >& SectionEntities();
45
47 {
48 eOutdated = 0x1,
49 };
50
52 void SetFlags( int flags );
53
54 struct ViewRef
55 {
58 OdDbHandle _sectionView; //CFxBIMSectionView
59 };
60 const std::vector< ViewRef >& Views() const;
61 std::vector< ViewRef >& Views();
62
63protected:
65
66protected:
67 std::shared_ptr< CFxBIMDrawingImpl > m_pImpl;
68};
#define FXBIM_API
Definition: FxBIM.h:20
OdSmartPtr< CFxBIMSection > CFxBIMSectionPtr
Definition: FxBIMDrawing.h:29
std::shared_ptr< CFxBIMDrawing > CFxBIMDrawingPtr
Definition: FxBIMDrawing.h:26
const std::vector< ViewRef > & Views() const
const OdString & SectionName() const
const OdString & ModelFileName() const
const std::vector< OdDbHandle > & SectionEntities() const
BimDrawingFlags Flags() const
std::vector< OdDbHandle > & SectionEntities()
std::vector< ViewRef > & Views()
void SetFlags(int flags)
static CFxBIMDrawingPtr Create(CFxBIMSectionPtr pSection)
OdDbHandle Section()
const OdString & FileName() const
std::shared_ptr< CFxBIMDrawingImpl > m_pImpl
Definition: FxBIMDrawing.h:67
virtual ~CFxBIMDrawing()