///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// ZNodeGraph Class
///
///				- Manage the properties of a node into the world
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////




#ifndef __ZOONODEGRAPH_H__
#define __ZOONODEGRAPH_H__


#include	"..\Basic\ZooStd.h"
#include	"..\Datas\ZooPRS.h"


///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// ZNodeGraph Class
///
///		- Classe des shell (ensembles d'objets 3D dans un même espace)
///		- Setting de la PRS
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

class ZNodeGraph : public ZNode
{

public:

	ZPRS		PRS;										// PRS of the object

	int			scene3D;

	ZMatrix		worldMat;									// matrix in the world space
	ZVector3	worldPos;									// position in the world space
	float		worldScale;									// scale in the world space

	float		rangeMIN;
	float		rangeMAX;
	bool		rangeOK;


	///////////////////////////////////////////////////////////////////////////
	/// Constructor & Destructor											///
	///////////////////////////////////////////////////////////////////////////
	ZNodeGraph(int s3d);
	virtual ~ZNodeGraph();

	ZPRS*	GetPRS()	
	{	
		PRS.CreateMatrix();
		return &PRS;	
	}
};


#endif