Panda3D
 All Classes Functions Variables Enumerations
geomLines.h
00001 // Filename: geomLines.h
00002 // Created by:  drose (22Mar05)
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 GEOMLINES_H
00016 #define GEOMLINES_H
00017 
00018 #include "pandabase.h"
00019 #include "geomPrimitive.h"
00020 
00021 ////////////////////////////////////////////////////////////////////
00022 //       Class : GeomLines
00023 // Description : Defines a series of disconnected line segments.
00024 ////////////////////////////////////////////////////////////////////
00025 class EXPCL_PANDA_GOBJ GeomLines : public GeomPrimitive {
00026 PUBLISHED:
00027   GeomLines(UsageHint usage_hint);
00028   GeomLines(const GeomLines &copy);
00029   virtual ~GeomLines();
00030 
00031 public:
00032   virtual PT(GeomPrimitive) make_copy() const;
00033   virtual PrimitiveType get_primitive_type() const;
00034 
00035   virtual int get_num_vertices_per_primitive() const;
00036   virtual int get_min_num_vertices_per_primitive() const;
00037 
00038 public:
00039   virtual bool draw(GraphicsStateGuardianBase *gsg,
00040                     const GeomPrimitivePipelineReader *reader,
00041                     bool force) const;
00042 
00043 protected:
00044   virtual CPT(GeomVertexArrayData) rotate_impl() const;
00045 
00046 public:
00047   static void register_with_read_factory();
00048 
00049 protected:
00050   static TypedWritable *make_from_bam(const FactoryParams &params);
00051 
00052 public:
00053   static TypeHandle get_class_type() {
00054     return _type_handle;
00055   }
00056   static void init_type() {
00057     GeomPrimitive::init_type();
00058     register_type(_type_handle, "GeomLines",
00059                   GeomPrimitive::get_class_type());
00060   }
00061   virtual TypeHandle get_type() const {
00062     return get_class_type();
00063   }
00064   virtual TypeHandle force_init_type() {init_type(); return get_class_type();}
00065 
00066 private:
00067   static TypeHandle _type_handle;
00068 
00069   friend class Geom;
00070 };
00071 
00072 #endif
 All Classes Functions Variables Enumerations