Teamcenter C++ API Reference  2312
Fnd0VisioDiagram.hxx
Go to the documentation of this file.
1 //Copyright 2022 Siemens Digital Industries Software
2 //==================================================
3 //Copyright $2023.
4 //Siemens Product Lifecycle Management Software Inc.
5 //All Rights Reserved.
6 //==================================================
7 //Copyright 2022 Siemens Digital Industries Software
8 
9 /*==================================================================================================
10 File description:
11  This file contains the declaration for the Business Object, Fnd0VisioDiagram
12  Filename: Fnd0VisioDiagram.hxx
13  Module: Fnd0nweditor
14  @BMIDE autogenerated
15 ==================================================================================================*/
16 
17 #ifndef TEAMCENTER__FND0VISIODIAGRAM__HXX
18 #define TEAMCENTER__FND0VISIODIAGRAM__HXX
19 
20 #include <unidefs.h>
21 #include <vector>
22 #include <string>
23 #include <common/tc_deprecation_macros.h>
25 
26 #include <Fnd0nweditor/libfnd0nweditor_exports.h>
27 
28 namespace Teamcenter
29 {
30  class Fnd0VisioDiagram;
31 }
32 namespace Teamcenter
33 {
34  class Fnd0VisioDiagramImpl;
35 }
36 namespace Teamcenter
37 {
38  class Fnd0VisioDiagramDelegate;
39 }
40 namespace Teamcenter
41 {
42  class Fnd0VisioDiagramDispatch;
43 }
44 namespace Teamcenter
45 {
46  class Fnd0VisioDiagramGenImpl;
47 }
48 namespace Teamcenter
49 {
50  class RootObjectImpl;
51 }
52 
53 class FND0NWEDITOR_API Teamcenter::Fnd0VisioDiagram
55 {
56 public:
57 
62  static const std::string& getInterfaceName();
63 
64 
84  int fnd0CreateDiagram( const tag_t &selectedObject, const std::vector< std::string > &propNames, const std::vector< std::string > &propValues, const bool &openDiagram, std::string &appDomain, std::vector< std::string > &diagramTemplateFileTickets, std::string &diagMappingFileTicket, tag_t &diagramRev, std::vector< tag_t > &diagramMembersPrimaryTags, std::vector< tag_t > &diagramMembersPersistentTags, std::vector< std::string > &typeNames, std::vector< tag_t > &relationMembersTags, std::vector< tag_t > &relationPrimary, std::vector< tag_t > &relationSecondary );
85 
94  int fnd0GetDiagramMembers( const tag_t &rootObject, const tag_t &diagTmplRev, std::vector< tag_t > *diagramMembers );
95 
106  int fnd0GetDiagramRelation( const std::vector< tag_t > &diagramMembers, const tag_t &diagTmplRev, std::vector< tag_t > &diagramRelations, std::vector< tag_t > &relationPrimary, std::vector< tag_t > &relationSecondary );
107 
130  int fnd0openDiagram( const tag_t &selectedObject, const tag_t &diagram_revision, std::vector< std::string > &diagramTemplateFileTickets, std::string &diagramMappingFileTicket, std::string &diagramFileTicket, std::string &applicationDomain, tag_t &startObject, std::vector< std::string > &objectUIDs, std::vector< int > &shapeID, std::vector< tag_t > &diagramMembersPrimaryTags, std::vector< tag_t > &diagramMembersPersistentTags, std::vector< std::string > &typeNames, std::vector< tag_t > &shapeRelationsOnMemberTags, std::vector< tag_t > &relationMembers, std::vector< tag_t > &shapeRelationsOnRelations, std::vector< tag_t > &relationPrimary, std::vector< tag_t > &relationSecondary );
131 
142  int fnd0SaveDiagram( const tag_t &selectedObject, const tag_t &diagramRevisionObject, const std::string *diagramFileTicket, const std::string *diagramImageFileTicket, std::vector< tag_t > *resultObjects );
143 protected:
144  // Method to initialize
145  virtual void initialize( ::Teamcenter::RootObjectImpl* impl );
146 
151 
155  virtual ~Fnd0VisioDiagram();
156 
157 private:
158  // Getter method for the Implementation Object
159  Fnd0VisioDiagramImpl* getFnd0VisioDiagramImpl() const;
160  // Setter method for the Implementation Object
161  ::Teamcenter::RootObjectImpl* setFnd0VisioDiagramImpl( ::Teamcenter::RootObjectImpl* impl );
162 
163  // Method to set the delete impl boolean
164  void setDeleteImpl( bool del );
165 
166  // Pointer to the Implementation object
167  Fnd0VisioDiagramImpl* m_fnd0visiodiagramImpl;
168 
169  // Flag to indicate if Implementation object needs to be deleted
171 
175  static std::string name;
176 
183 
184  friend class Fnd0VisioDiagramDelegate;
185  friend class Fnd0VisioDiagramGenImpl;
186 };
187 
188 #include <Fnd0nweditor/libfnd0nweditor_undef.h>
189 #endif // TEAMCENTER__FND0VISIODIAGRAM__HXX