/////////////////////////////////////////////////////////////////////////////// // 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 __NW_SAVEDANIMGROUP_H__ #define __NW_SAVEDANIMGROUP_H__ #include "NwSavedFolderItem.h" /** This class represents animation camera. */ class NWDBEXPORT OdNwSavedAnimGroup : public OdNwSavedGroupItem { //DOM-IGNORE-BEGIN ODRX_DECLARE_MEMBERS(OdNwSavedAnimGroup); //DOM-IGNORE-END public: /** \details Default constructor. */ OdNwSavedAnimGroup(); /** \details Constructor for objects of the OdNwSavedAnimGroup class. Creates an OdNwSavedAnimGroup object for the specified item. \param pImpl [in] Item to create an OdNwSavedAnimGroup object for. */ explicit OdNwSavedAnimGroup(OdNwObjectImpl* pImpl); /** \details Virtual destructor. Frees allocated resources. */ virtual ~OdNwSavedAnimGroup(); /** \details Determines whether the animation is in the Loop mode. \returns True if the animation is in the Loop mode, otherwise false. */ bool isLoop() const; /** \details Determines whether the animation is in the Ping-Pong mode. \returns True if the animation is in the Ping-Pong mode, otherwise false. */ bool isPingPong() const; /** \details Determines whether the animation is active in the scene. \returns True if the animation is active in the scene, otherwise false. */ bool isActive() const; /** \details Sets the Active flag that indicates whether scene animation component has active status. \param isActive [in] State of the flag to set. \remarks Only active animations will play. */ void setActiveFlag(bool isActive); /** \details Sets the PingPong flag that indicates whether animation is in the Ping-Pong mode. \param isPingPong [in] State of the flag to set. \remarks When the animation reaches the end, it will run backward until it reaches the start. */ void setPingPongFlag(bool isPingPong); /** \details Sets the loop flag that indicates whether animation is in the Loop mode. \param isLoop [in] State of the flag to set. \remarks When the animation reaches the end, it will reset back to the start and run again. */ void setLoopFlag(bool isLoop); }; /** \details This template class is a specialization of the OdSmartPtr class for OdNwSavedAnimGroup object pointers. */ typedef OdSmartPtr OdNwSavedAnimGroupPtr; #endif /* __NW_SAVEDANIMGROUP_H__ */