00001 // Filename: pandaNodeChain.h 00002 // Created by: drose (21Apr06) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) Carnegie Mellon University. All rights reserved. 00008 // 00009 // All use of this software is subject to the terms of the revised BSD 00010 // license. You should have received a copy of this license along 00011 // with this source code in a file named "LICENSE." 00012 // 00013 //////////////////////////////////////////////////////////////////// 00014 00015 #ifndef PANDANODECHAIN_H 00016 #define PANDANODECHAIN_H 00017 00018 #include "pandabase.h" 00019 #include "linkedListNode.h" 00020 #include "lightMutex.h" 00021 00022 class PandaNode; 00023 00024 //////////////////////////////////////////////////////////////////// 00025 // Class : PandaNodeChain 00026 // Description : This class maintains a linked list of PandaNodes. 00027 // It's used to maintain a list of PandaNodes whose 00028 // _prev_transform is different from their _transform 00029 // (in pipeline stage 0). 00030 //////////////////////////////////////////////////////////////////// 00031 class EXPCL_PANDA_PGRAPH PandaNodeChain : private LinkedListNode { 00032 public: 00033 INLINE PandaNodeChain(const char *lock_name); 00034 INLINE ~PandaNodeChain(); 00035 00036 LightMutex _lock; 00037 00038 friend class PandaNode; 00039 }; 00040 00041 #include "pandaNodeChain.I" 00042 00043 #endif 00044