/////////////////////////////////////////////////////////////////////////////// // Copyright (C) 2002-2025, Open Design Alliance (the "Alliance"). // All rights reserved. // // This software and its documentation and related materials are owned by // the Alliance. The software may only be incorporated into application // programs owned by members of the Alliance, subject to a signed // Membership Agreement and Supplemental Software License Agreement with the // Alliance. The structure and organization of this software are the valuable // trade secrets of the Alliance and its suppliers. The software is also // protected by copyright law and international treaty provisions. Application // programs incorporating this software must include the following statement // with their copyright notices: // // This application incorporates Open Design Alliance software pursuant to a license // agreement with Open Design Alliance. // Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance. // All rights reserved. // // By use of this software, its documentation or related materials, you // acknowledge and accept the above terms. /////////////////////////////////////////////////////////////////////////////// #ifndef _PRCMODELFILEDATA_INCLUDED_ #define _PRCMODELFILEDATA_INCLUDED_ #include "PrcUnit.h" #include "PrcUserData.h" #include "PrcBase.h" #include "PrcProductOccurrence.h" SMARTPTR(OdPrcModelFileData); class OdPrcFile; /** \details A data type that represents a reference to an object. The object is referenced via its . */ typedef OdPrcObjectId OdPrcProductOccurrenceReference; /** \details A data type that represents an array of references to objects. The objects are referenced via their . */ typedef OdArray OdPrcProductOccurrenceReferenceArray; /** \details This class stores and operates information about data imported from a CAD file. */ class PRC_TOOLKIT OdPrcModelFileData : public OdPrcBase { friend class OdPrcFile; public: //DOM-IGNORE-BEGIN ODPRC_DECLARE_MEMBERS_PRCBASE(OdPrcModelFileData); //DOM-IGNORE-END /** \details Requests the current used within the model. \returns An object. \remarks The method returns the via a reference, and therefore any modification of the returned object causes the for the to be changed. To restrict any modifications of the outside the object, call another method that returns a constant reference. */ OdPrcUnit &unit(); /** \details Requests the current used within the model. \returns An object. */ const OdPrcUnit &unit() const; /** \details Requests the current user-defined data associated with the model file data. \returns An object that contains the user-defined data. \remarks User data is returned as a reference to an object, and therefore it can be used to set new user data. To restrict modifications of the user data outside the object, call another method that returns a constant reference. */ OdPrcUserData &userData(); /** \details Requests the current user-defined data associated with the model file data. \returns An object that contains the user-defined data. */ const OdPrcUserData &userData() const; /** \details Clears the current list of . */ void clearRoots(void); /** \details Adds a new start root to the end of the list of occurrences. \param pPO [in] A new start root to be set. */ void addStartRootOccurrence(const OdPrcProductOccurrence &pPO); /** \details Requests the current list of . \returns An of identifiers that refer to . \remarks The method returns the via a reference, and therefore any modification of the returned causes the list of to be changed. To restrict any modifications of the outside the object, call another method that returns a constant reference. */ OdPrcProductOccurrenceReferenceArray& getStartRootOccurrences(void); /** \details Requests the current list of . \returns An of identifiers that refer to . */ const OdPrcProductOccurrenceReferenceArray& getStartRootOccurrences(void) const; protected: virtual bool subWorldDraw (OdGiWorldDraw * pWd) const; virtual OdUInt32 subSetAttributes (OdGiDrawableTraits * traits) const; }; #endif // _PRCMODELFILEDATA_INCLUDED_