open_toontown_panda3d/pandatool/src/eggprogs/eggCrop.h

50 lines
1.3 KiB
C++

// Filename: eggCrop.h
// Created by: drose (10Jun02)
//
////////////////////////////////////////////////////////////////////
//
// PANDA 3D SOFTWARE
// Copyright (c) 2001 - 2004, Disney Enterprises, Inc. All rights reserved
//
// All use of this software is subject to the terms of the Panda 3d
// Software license. You should have received a copy of this license
// along with this source code; you will also find a current copy of
// the license at http://etc.cmu.edu/panda3d/docs/license/ .
//
// To contact the maintainers of this program write to
// panda3d-general@lists.sourceforge.net .
//
////////////////////////////////////////////////////////////////////
#ifndef EGGCROP_H
#define EGGCROP_H
#include "pandatoolbase.h"
#include "eggFilter.h"
class EggGroupNode;
////////////////////////////////////////////////////////////////////
// Class : EggCrop
// Description : A program to read an egg file and write an equivalent
// egg file, possibly performing some minor operations
// along the way.
////////////////////////////////////////////////////////////////////
class EggCrop : public EggFilter {
public:
EggCrop();
virtual bool post_command_line();
void run();
private:
int strip_prims(EggGroupNode *group);
bool _got_min, _got_max;
LVecBase3d _min, _max;
};
#endif