Panda3D

eggCrop.h

00001 // Filename: eggCrop.h
00002 // Created by:  drose (10Jun02)
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 EGGCROP_H
00016 #define EGGCROP_H
00017 
00018 #include "pandatoolbase.h"
00019 
00020 #include "eggFilter.h"
00021 
00022 class EggGroupNode;
00023 
00024 ////////////////////////////////////////////////////////////////////
00025 //       Class : EggCrop
00026 // Description : A program to read an egg file and write an equivalent
00027 //               egg file, possibly performing some minor operations
00028 //               along the way.
00029 ////////////////////////////////////////////////////////////////////
00030 class EggCrop : public EggFilter {
00031 public:
00032   EggCrop();
00033 
00034   virtual bool post_command_line();
00035   void run();
00036 
00037 private:
00038   int strip_prims(EggGroupNode *group);
00039 
00040   bool _got_min, _got_max;
00041   LVecBase3d _min, _max;
00042 };
00043 
00044 #endif
00045 
 All Classes Functions Variables Enumerations