CFx SDK Documentation 2026 SP0
Loading...
Searching...
No Matches
FxBIMDrawing.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 <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 bool HasFlag( BimDrawingFlags flag ) const;
55 void SetFlag( BimDrawingFlags flag, bool isRaised );
56 void SetFlags( int flags );
57
64 const std::vector< ViewRef >& Views() const;
65 std::vector< ViewRef >& Views();
66
67 using tile_view_vector = std::vector< OdDbHandle >;
68
71
72protected:
74
75protected:
76 std::shared_ptr< CFxBIMDrawingImpl > m_pImpl;
77};
#define FXBIM_API
Definition FxBIMDefs.h:4
OdSmartPtr< CFxBIMSection > CFxBIMSectionPtr
std::shared_ptr< CFxBIMDrawing > CFxBIMDrawingPtr
const std::vector< ViewRef > & Views() const
void SetFlag(BimDrawingFlags flag, bool isRaised)
const OdString & SectionName() const
const OdString & ModelFileName() const
const tile_view_vector & TileViews() const
tile_view_vector & TileViews()
const std::vector< OdDbHandle > & SectionEntities() const
BimDrawingFlags Flags() const
std::vector< OdDbHandle > & SectionEntities()
bool HasFlag(BimDrawingFlags flag) const
std::vector< ViewRef > & Views()
void SetFlags(int flags)
void RaiseFlag(BimDrawingFlags flag)
static CFxBIMDrawingPtr Create(CFxBIMSectionPtr pSection)
OdDbHandle Section()
void ClearFlag(BimDrawingFlags flag)
friend class CFxBIMDrawingImpl
const OdString & FileName() const
std::shared_ptr< CFxBIMDrawingImpl > m_pImpl
std::vector< OdDbHandle > tile_view_vector
virtual ~CFxBIMDrawing()