/////////////////////////////////////////////////////////////////////////////// // 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 _ODAUTOPLANTPROPERTIES_INCLUDED #define _ODAUTOPLANTPROPERTIES_INCLUDED #include "OdaCommon.h" #include "DgValueTypes.h" #include "RxProperty.h" #include "RxDynamicModule.h" #include "RxSysRegistry.h" #include "RxObjectImpl.h" #include "RxValueTypeUtil.h" #include "RxAttribute.h" #include "DgElement.h" #include "DynamicLinker.h" #undef ODRX_DECLARE_RX_PROPERTY #define ODRX_DECLARE_RX_PROPERTY(Object, Name, Type, Category, Weight, Description) \ struct Object ## Name ## Property : OdRxProperty {\ static OdRxMemberPtr createObject(const OdRxClass* owner)\ {\ OdRxMemberPtr res = OdRxObjectImpl::createObject();\ ((Object ## Name ## Property*)res.get())->init(__OD_T(#Name), &OdRxValueType::Desc::value(), owner);\ if( OdString::kEmpty != Description ) \ ((Object ## Name ## Property*)res.get())->attributes().add(OdRxDescriptionAttribute::createObject(OD_T(Description))); \ if( OdString::kEmpty != Category ) \ ((Object ## Name ## Property*)res.get())->attributes().add(OdRxUiPlacementAttribute::createObject(OD_T(Category), Weight)); \ return res;\ }\ virtual OdResult subGetValue(const OdRxObject* pO, OdRxValue& value) const ODRX_OVERRIDE;\ virtual OdResult subSetValue(OdRxObject* pO, const OdRxValue& value) const ODRX_OVERRIDE;\ } // Autoplant Cylinder ODRX_DECLARE_RX_PROPERTY(OdDgAutoplantCylinder, Center1, OdGePoint3d, "Autoplant", 1, "Center of cylinder base"); ODRX_DECLARE_RX_PROPERTY(OdDgAutoplantCylinder, Center2, OdGePoint3d, "Autoplant", 2, "Center of cylinder top"); ODRX_DECLARE_RX_PROPERTY(OdDgAutoplantCylinder, Radius, double, "Autoplant", 3, "Radius of cylinder"); ODRX_DECLARE_RX_PROPERTY(OdDgAutoplantCylinder, DrawStartCapFlag, bool, "Autoplant", 4, "Draw start cap of cylinder"); ODRX_DECLARE_RX_PROPERTY(OdDgAutoplantCylinder, DrawEndCapFlag, bool, "Autoplant", 5, "Draw end cap of cylinder"); ODRX_DECLARE_RX_PROPERTY(OdDgAutoplantCylinder, Flags, OdUInt64, "Autoplant", 6, "Autoplant Flags"); // Autoplant Cone ODRX_DECLARE_RX_PROPERTY(OdDgAutoplantCone, Center1, OdGePoint3d, "Autoplant", 1, "Center of cone base"); ODRX_DECLARE_RX_PROPERTY(OdDgAutoplantCone, Center2, OdGePoint3d, "Autoplant", 2, "Center of cone top"); ODRX_DECLARE_RX_PROPERTY(OdDgAutoplantCone, Center2Offset, OdGeVector3d, "Autoplant", 3, "Offset of Center2 from top point"); ODRX_DECLARE_RX_PROPERTY(OdDgAutoplantCone, Radius1, double, "Autoplant", 4, "Base radius of cone"); ODRX_DECLARE_RX_PROPERTY(OdDgAutoplantCone, Radius2, double, "Autoplant", 5, "Top radius of cone"); ODRX_DECLARE_RX_PROPERTY(OdDgAutoplantCone, DrawStartCapFlag, bool, "Autoplant", 6, "Draw start cap of cone"); ODRX_DECLARE_RX_PROPERTY(OdDgAutoplantCone, DrawEndCapFlag, bool, "Autoplant", 7, "Draw end cap of cone"); ODRX_DECLARE_RX_PROPERTY(OdDgAutoplantCone, Flags, OdUInt64, "Autoplant", 8, "Autoplant Flags"); // Autoplant Box ODRX_DECLARE_RX_PROPERTY(OdDgAutoplantBox, BaseCenter, OdGePoint3d, "Autoplant", 1, "Center of box base side"); ODRX_DECLARE_RX_PROPERTY(OdDgAutoplantBox, TopCenter, OdGePoint3d, "Autoplant", 2, "Center of box top side"); ODRX_DECLARE_RX_PROPERTY(OdDgAutoplantBox, WidthDirection, OdGeVector3d, "Autoplant", 3, "Direction of box width"); ODRX_DECLARE_RX_PROPERTY(OdDgAutoplantBox, TopCenterOffset, OdGeVector3d, "Autoplant", 4, "Offset of center point from top point"); ODRX_DECLARE_RX_PROPERTY(OdDgAutoplantBox, BaseLength, double, "Autoplant", 5, "Base length of box"); ODRX_DECLARE_RX_PROPERTY(OdDgAutoplantBox, BaseWidth, double, "Autoplant", 6, "Base width of box"); ODRX_DECLARE_RX_PROPERTY(OdDgAutoplantBox, TopLength, double, "Autoplant", 7, "Top length of box"); ODRX_DECLARE_RX_PROPERTY(OdDgAutoplantBox, TopWidth, double, "Autoplant", 8, "Top width of box"); ODRX_DECLARE_RX_PROPERTY(OdDgAutoplantBox, Flags, OdUInt64, "Autoplant", 9, "Autoplant Flags"); // Autoplant Sphere ODRX_DECLARE_RX_PROPERTY(OdDgAutoplantSphere, Origin, OdGePoint3d, "Autoplant", 1, "Origin of sphere"); ODRX_DECLARE_RX_PROPERTY(OdDgAutoplantSphere, Direction, OdGeVector3d, "Autoplant", 2, "Direction of sphere"); ODRX_DECLARE_RX_PROPERTY(OdDgAutoplantSphere, Radius, double, "Autoplant", 3, "Radius of sphere"); ODRX_DECLARE_RX_PROPERTY(OdDgAutoplantSphere, Flags, OdUInt64, "Autoplant", 4, "Autoplant Flags"); // Autoplant Torus ODRX_DECLARE_RX_PROPERTY(OdDgAutoplantTorus, Origin, OdGePoint3d, "Autoplant", 1, "Origin of torus"); ODRX_DECLARE_RX_PROPERTY(OdDgAutoplantTorus, Direction, OdGeVector3d, "Autoplant", 2, "Direction of torus"); ODRX_DECLARE_RX_PROPERTY(OdDgAutoplantTorus, RefVector, OdGeVector3d, "Autoplant", 3, "Reference vector of torus"); ODRX_DECLARE_RX_PROPERTY(OdDgAutoplantTorus, MajorRadius, double, "Autoplant", 4, "Major radius of torus"); ODRX_DECLARE_RX_PROPERTY(OdDgAutoplantTorus, MinorStartRadius, double, "Autoplant", 5, "Minor start radius of torus"); ODRX_DECLARE_RX_PROPERTY(OdDgAutoplantTorus, MinorEndRadius, double, "Autoplant", 6, "Minor end radius of torus"); ODRX_DECLARE_RX_PROPERTY(OdDgAutoplantTorus, StartAngle, double, "Autoplant", 7, "Start angle of torus"); ODRX_DECLARE_RX_PROPERTY(OdDgAutoplantTorus, SweepAngle, double, "Autoplant", 8, "Sweep angle of torus"); ODRX_DECLARE_RX_PROPERTY(OdDgAutoplantTorus, Flags, OdUInt64, "Autoplant", 9, "Autoplant Flags"); // Autoplant Dome ODRX_DECLARE_RX_PROPERTY(OdDgAutoplantDome, Origin, OdGePoint3d, "Autoplant", 1, "Origin of dome"); ODRX_DECLARE_RX_PROPERTY(OdDgAutoplantDome, Direction, OdGeVector3d, "Autoplant", 2, "Direction of dome"); ODRX_DECLARE_RX_PROPERTY(OdDgAutoplantDome, Radius, double, "Autoplant", 3, "Radius of dome"); ODRX_DECLARE_RX_PROPERTY(OdDgAutoplantDome, Height, double, "Autoplant", 4, "Height of dome"); ODRX_DECLARE_RX_PROPERTY(OdDgAutoplantDome, Flags, OdUInt64, "Autoplant", 5, "Autoplant Flags"); // Autoplant Bolt ODRX_DECLARE_RX_PROPERTY(OdDgAutoplantBolt, Origin, OdGePoint3d, "Autoplant", 1, "Origin of bolt"); ODRX_DECLARE_RX_PROPERTY(OdDgAutoplantBolt, Direction, OdGeVector3d, "Autoplant", 2, "Direction of bolt"); ODRX_DECLARE_RX_PROPERTY(OdDgAutoplantBolt, Radius, double, "Autoplant", 3, "Radius of bolt"); ODRX_DECLARE_RX_PROPERTY(OdDgAutoplantBolt, StemLength, double, "Autoplant", 4, "Stem length of bolt"); ODRX_DECLARE_RX_PROPERTY(OdDgAutoplantBolt, VisibleInShadedRegen, bool, "Autoplant", 5, "Element is visible in shaded regen mode"); ODRX_DECLARE_RX_PROPERTY(OdDgAutoplantBolt, Flags, OdUInt64, "Autoplant", 6, "Autoplant Flags"); #endif