Panda3D
 All Classes Functions Variables Enumerations
eggVertexAux.h
00001 // Filename: eggVertexAux.h
00002 // Created by:  jenes (15Nov11)
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 EGGVERTEXAUX_H
00016 #define EGGVERTEXAUX_H
00017 
00018 #include "pandabase.h"
00019 
00020 #include "eggMorphList.h"
00021 #include "eggNamedObject.h"
00022 
00023 #include "luse.h"
00024 
00025 ////////////////////////////////////////////////////////////////////
00026 //       Class : EggVertexAux
00027 // Description : The set of named auxiliary data that may or may not
00028 //               be assigned to a vertex.  Panda will import this data
00029 //               and create a custom column for it in the vertex data,
00030 //               but will not otherwise interpret it.  Presumably, a
00031 //               shader will process the data later.
00032 ////////////////////////////////////////////////////////////////////
00033 class EXPCL_PANDAEGG EggVertexAux : public EggNamedObject {
00034 PUBLISHED:
00035   EggVertexAux(const string &name, const LVecBase4d &aux);
00036   EggVertexAux(const EggVertexAux &copy);
00037   EggVertexAux &operator = (const EggVertexAux &copy);
00038   virtual ~EggVertexAux();
00039 
00040   INLINE void set_name(const string &name);
00041 
00042   INLINE const LVecBase4d &get_aux() const;
00043   INLINE void set_aux(const LVecBase4d &aux);
00044 
00045   void write(ostream &out, int indent_level) const;
00046   int compare_to(const EggVertexAux &other) const;
00047 
00048 private:
00049   LVecBase4d _aux;
00050 
00051 public:
00052   static TypeHandle get_class_type() {
00053     return _type_handle;
00054   }
00055   static void init_type() {
00056     EggNamedObject::init_type();
00057     register_type(_type_handle, "EggVertexAux",
00058                   EggNamedObject::get_class_type());
00059   }
00060   virtual TypeHandle get_type() const {
00061     return get_class_type();
00062   }
00063   virtual TypeHandle force_init_type() {init_type(); return get_class_type();}
00064 
00065 private:
00066   static TypeHandle _type_handle;
00067 };
00068 
00069 #include "eggVertexAux.I"
00070 
00071 #endif
00072 
 All Classes Functions Variables Enumerations