FCDocument/FCDTargetedEntity.h

Go to the documentation of this file.
00001 /*
00002     Copyright (C) 2005-2006 Feeling Software Inc.
00003     MIT License: http://www.opensource.org/licenses/mit-license.php
00004 */
00005 /*
00006     Based on the FS Import classes:
00007     Copyright (C) 2005-2006 Feeling Software Inc
00008     Copyright (C) 2005-2006 Autodesk Media Entertainment
00009     MIT License: http://www.opensource.org/licenses/mit-license.php
00010 */
00011 
00017 #ifndef _FCD_TARGETED_ENTITY_H_
00018 #define _FCD_TARGETED_ENTITY_H_
00019 
00020 #include "FCDocument/FCDEntity.h"
00021 
00022 class FCDSceneNode;
00023 
00036 class FCOLLADA_EXPORT FCDTargetedEntity : public FCDEntity
00037 {
00038 private:
00039     DeclareObjectType;
00040 
00041     // Target
00042     string targetId; // only valid during the import
00043     FCDSceneNode* targetNode;
00044 
00045 public:
00050     FCDTargetedEntity(FCDocument* document, const char* baseId);
00051 
00054     virtual ~FCDTargetedEntity();
00055 
00058     inline bool HasTarget() const { return targetNode != NULL; }
00059 
00062     inline FCDSceneNode* GetTargetNode() { return targetNode; }
00063     inline const FCDSceneNode* GetTargetNode() const { return targetNode; } 
00067     void SetTargetNode(FCDSceneNode* target);
00068 
00074     FUStatus LinkTarget(FCDSceneNode* sceneRoot);
00075 
00076 protected:
00081     inline const string& GetTargetId() { return targetId; }
00082 
00088     inline void SetTargetId(const string& _targetId) { targetId = _targetId; }
00089     inline void SetTargetId(const char* _targetId) { targetId = _targetId; } 
00090 };
00091 
00092 #endif // _FCD_TARGETED_ENTITY_H_
00093 

Generated on Fri May 12 16:44:39 2006 for FCollada by  doxygen 1.4.6-NO