- Main Page
- Classes
- Files

- Search for |

# CollisionSphereHierarchy.h

Go to the documentation of this file.

    00001 /*****************************
    00002 File:      CollisionSphereHierarchy.h
    00003 Language:   C++ (header)
    00004 Project:    H3DNetworkingUtils
    00005 The contents of this file are subject to the Mozilla Public License
    00006 Version 1.1 (the "License"); you may not use this file except in
    00007 compliance with the License. You may obtain a copy of the License at
    00008 http://www.mozilla.org/MPL/
    00009
    00010 Software distributed under the License is distributed on an "AS IS"
    00011 basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
    00012 License for the specific language governing rights and limitations
    00013 under the License.
    00014
    00015 The Original Code is H3DNetworkingUtils v1.0.
    00016
    00017 The Initial Developer of the Original Code is CSIRO.
    00018 Portions created by the Initial Developer are Copyright (C) 1009 CSIRO. All Rights Reserved.
    00019 Contributor(s):
    00020     Chris Gunn  <Chris.Gunn@csiro.au> <ChrisJGunn@gmail.com>
    00021 ***************************/
    00022
    00025
    00026
    00027 #ifndef CollisionSphereHierarchy_H
    00028 #define CollisionSphereHierarchy_H
    00029
    00030 #include "H3DNetworkingUtils/Config.h"
    00031 #include "H3DNetworkingUtils/CollisionSphere.h"
    00032
    00033 namespace H3DNetworkingUtils {
    00034
    00040
    00041 class H3D_NETWORKING_UTILS_DLL_SPEC CollisionSphereHierarchy : public CollisionSphere {
    00042 public:
    00043
    00044    class H3D_NETWORKING_UTILS_DLL_SPEC MFCollidableGeometry : public H3D::TypedMFNode< CollisionGeometry > {
    00045    public:
    00046       virtual void onAdd( Node *n);
    00047       virtual void onRemove( Node *n);
    00048    };
    00049
    00051    CollisionSphereHierarchy(
    00052     H3D::Inst< MFCollidableGeometry > _collidables = 0,
    00053     H3D::Inst< CollisionSphere::Radius > _radius = 0);
    00054
    00056   virtual void initialize();
    00057
    00062   auto_ptr< MFCollidableGeometry > collidables;
    00063
    00064   static H3D::H3DNodeDatabase database;
    00065
    00068   virtual void setDyn( CollidableDynamic *ptr );
    00069
    00070 };
    00071
    00072 }
    00073
    00074 #endif