Show kcursor3d.h syntax highlighted
/*
Copyright (C) 2003, 2004 by Luca Cappa
Written by Luca Cappa groton@users.sourceforge.net
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#ifndef __KCURSOR3D_H__
#define __KCURSOR3D_H__
SCF_VERSION (KCursor, 0, 0, 1);
#include "imesh/object.h"
#include "csgeom/box.h"
#include "igeom/objmodel.h"
#include "csgeom/objmodel.h"
#include "cstool/meshobjtmpl.h"
struct iEngine;
struct iKXMLReader;
struct iKXMLWriter;
struct iEngine;
struct iMeshWrapper;
class csVector;
class csPath;
class csMeshObject;
class KCursor3D : public iEventHandler //csMeshObject, public iKXMLReader, public iKXMLWriter
{
private:
bool m_invisible;//Is this path object invisible?
protected:
/**
*/
csRef<iMeshWrapper> m_cursorMW;
csRef<KWireframe> m_wireframe;
csRef<iEngine> m_engine;
csRef<iLoader> m_loader;
public:
SCF_DECLARE_IBASE;
KCursor3D ();
virtual ~KCursor3D ();
bool Initialize ();
void SetVisible (bool p_invisible);
bool GetVisile ();
bool Track (csRefArray<iMeshWrapper> p_mWL, bool p_inv = true);
bool Untrack (bool = true);
bool HandleEvent (iEvent& p_e);
};
#endif
See more files for this project here