Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6022 in orxonox.OLD for trunk/src/lib/graphics


Ignore:
Timestamp:
Dec 10, 2005, 8:33:08 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: merged the NewModel branche back to the trunk.
merged with command
svn merge branches/newModel/ trunk/ -r 6016:HEAD
no conflicts

Location:
trunk/src/lib/graphics
Files:
2 deleted
12 edited
4 copied

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/graphics/importer/Makefile.am

    r6010 r6022  
    44noinst_LIBRARIES = libORXimporter.a
    55
    6 libORXimporter_a_SOURCES = abstract_model.cc \
     6libORXimporter_a_SOURCES = model.cc \
    77                           vertex_array_model.cc \
    8                            model.cc \
     8                           static_model.cc \
    99                           objModel.cc \
    1010                           primitive_model.cc \
     
    1616
    1717
    18 noinst_HEADERS = abstract_model.h \
     18noinst_HEADERS = model.h \
    1919                 vertex_array_model.h \
    20                  model.h \
     20                 static_model.h \
    2121                 objModel.h \
    2222                 primitive_model.h \
  • trunk/src/lib/graphics/importer/md2Model.cc

    r5284 r6022  
    160160
    161161/**
    162   \brief draws the model: interface for all other classes out in the world
    163 */
     162 * @brief draws the model: interface for all other classes out in the world
     163 * @todo make it const and virtual
     164 * FIXME
     165 */
    164166void MD2Model::draw()
    165167{
  • trunk/src/lib/graphics/importer/md2Model.h

    r5304 r6022  
    1919#define _MD2MODEL_H
    2020
    21 #include "abstract_model.h"
     21#include "model.h"
    2222#include "base_object.h"
    2323#include "stdincl.h"
     
    137137
    138138//! This is a MD2 Model class
    139 class MD2Model : public AbstractModel {
     139class MD2Model : public Model {
    140140
    141141public:
  • trunk/src/lib/graphics/importer/objModel.cc

    r5319 r6022  
    3232 * @param scaling The factor that the model will be scaled with.
    3333*/
    34 OBJModel::OBJModel(const char* fileName, float scaling) : Model(fileName)
     34OBJModel::OBJModel(const char* fileName, float scaling) : StaticModel(fileName)
    3535{
    3636  this->objPath = "./";
  • trunk/src/lib/graphics/importer/objModel.h

    r4468 r6022  
    77#define _OBJMODEL_H
    88
    9 #include "model.h"
     9#include "static_model.h"
    1010
    1111//! A Class, that handles the parsing of an obj-file, and inclusion as a Model.
    12 class OBJModel : public Model
     12class OBJModel : public StaticModel
    1313{
    1414 public:
  • trunk/src/lib/graphics/importer/primitive_model.h

    r5039 r6022  
    88#define _PRIMITIVE_MODEL_H
    99
    10 #include "model.h"
     10#include "static_model.h"
    1111
    1212//! Specification of different primitives the Model knows
     
    1818
    1919//! A Class to create some default Models
    20 class PrimitiveModel : public Model {
     20class PrimitiveModel : public StaticModel {
    2121
    2222 public:
  • trunk/src/lib/graphics/importer/vertex_array_model.h

    r6012 r6022  
    77#define _VERTEX_ARRAY_MODEL_H
    88
    9 #include "abstract_model.h"
     9#include "model.h"
    1010
    1111#include "glincl.h"
     
    2222/////////////
    2323//! Class that handles 3D-Models. it can also read them in and display them.
    24 class VertexArrayModel : public AbstractModel
     24class VertexArrayModel : public Model
    2525{
    2626 public:
  • trunk/src/lib/graphics/spatial_separation/quadtree.h

    r5430 r6022  
    1212
    1313#include "base_object.h"
    14 #include "abstract_model.h"
     14#include "model.h"
    1515
    1616
  • trunk/src/lib/graphics/spatial_separation/quadtree_node.cc

    r5819 r6022  
    2121#include "quadtree.h"
    2222#include "material.h"
    23 #include "abstract_model.h"
     23#include "model.h"
    2424#include "debug.h"
    2525
     
    346346/**
    347347 *  gets the maximal dimension of a model
    348  * @return the dimension of the AbstractModel as a Rectangle
     348 * @return the dimension of the Model as a Rectangle
    349349
    350350   The rectangle is x-z axis aligned. ATTENTION: if there are any vertices in the model, that exceed the
  • trunk/src/lib/graphics/spatial_separation/quadtree_node.h

    r5819 r6022  
    1717#include "base_object.h"
    1818
    19 #include "abstract_model.h"
     19#include "model.h"
    2020
    2121// FORWARD DECLARATION
  • trunk/src/lib/graphics/spatial_separation/spatial_separation.cc

    r5427 r6022  
    1818#include "spatial_separation.h"
    1919
    20 #include "abstract_model.h"
     20#include "model.h"
    2121#include "quadtree.h"
    2222#include "debug.h"
     
    3434
    3535 */
    36 SpatialSeparation::SpatialSeparation (AbstractModel* model, float overlapSize)
     36SpatialSeparation::SpatialSeparation (Model* model, float overlapSize)
    3737{
    3838  PRINT(3)("+---------Debug Information SpatialSeparation----------\n");
     
    5252   The boxes are overlaping because this makes collision detection a lot simpler
    5353 */
    54 SpatialSeparation::SpatialSeparation (AbstractModel* model, AbstractModel* playerModel)
     54SpatialSeparation::SpatialSeparation (Model* model, Model* playerModel)
    5555{
    5656  this->setClassID(CL_SPATIAL_SEPARATION, "SpatialSeparation");
     
    7575 * @return the new quadtree
    7676 */
    77 Quadtree* SpatialSeparation::createQuadtree(AbstractModel* model, float minLength)
     77Quadtree* SpatialSeparation::createQuadtree(Model* model, float minLength)
    7878{
    7979  this->minLength = minLength;
     
    8888 * @return the new quadtree
    8989 */
    90 Quadtree* SpatialSeparation::createQuadtree(AbstractModel* model, int treeDepth)
     90Quadtree* SpatialSeparation::createQuadtree(Model* model, int treeDepth)
    9191{
    9292  this->treeDepth = treeDepth;
     
    100100 * @return the new quadtree
    101101 */
    102 Quadtree* SpatialSeparation::createQuadtree(AbstractModel* model)
     102Quadtree* SpatialSeparation::createQuadtree(Model* model)
    103103{
    104104  this->quadtree = new Quadtree(model->getModelInfo(), 4);
  • trunk/src/lib/graphics/spatial_separation/spatial_separation.h

    r5356 r6022  
    99
    1010
    11 class AbstractModel;
     11class Model;
    1212class Quadtree;
    1313
     
    2121
    2222  public:
    23     SpatialSeparation(AbstractModel* model, float overlapSize);
    24     SpatialSeparation(AbstractModel* model, AbstractModel* playerModel);
     23    SpatialSeparation(Model* model, float overlapSize);
     24    SpatialSeparation(Model* model, Model* playerModel);
    2525    virtual ~SpatialSeparation();
    2626
     
    2828    void setMinLength(int minLength) { this->minLength = minLength; }
    2929
    30     Quadtree* createQuadtree(AbstractModel* model, float minLength);
    31     Quadtree* createQuadtree(AbstractModel* model, int treeDepth);
    32     Quadtree* createQuadtree(AbstractModel* model);
     30    Quadtree* createQuadtree(Model* model, float minLength);
     31    Quadtree* createQuadtree(Model* model, int treeDepth);
     32    Quadtree* createQuadtree(Model* model);
    3333
    3434    inline Quadtree* getQuadtree() { return this->quadtree; }
     
    4141
    4242  private:
    43     AbstractModel*             model;        //!< the reference to the model that has to be handled
     43    Model*             model;        //!< the reference to the model that has to be handled
    4444    Quadtree*                  quadtree;     //!< the reference to the created quadtree
    4545
    46     AbstractModel*             playerModel;  //!< referece to the player model, if needed for overlap calculations
     46    Model*             playerModel;  //!< referece to the player model, if needed for overlap calculations
    4747    float                      overlapSize;  //!< the size of overlaping
    4848
Note: See TracChangeset for help on using the changeset viewer.