#ifndef __vtkInfoColision_h #define __vtkInfoColision_h #include "vtkesquiColisionWin32Header.h" #include "vtkObject.h" #include "Macros.h" class VTK_ESQUI_COLISION_EXPORT vtkInfoColision : public vtkObject { protected: public: vtkTypeRevisionMacro(vtkInfoColision,vtkObject); static vtkInfoColision *New(); const char *GetClassName() {return "vtkInfoColision";}; void DeepCopy(vtkInfoColision *Copia); //! Herramienta que produjo la colision int nHerramienta; //! Caja de inclusión de la herramienta que produjo la colision int nCaja; //! Modelo Deformable colisionado (-1 si no colisiona con ningn modelo) int nDeformable; //! Modelo de escenario colisionado que no es deformable int nEstatico; //! Nmero del vértice del modelo deformable colisionado int nVertice; //! Cara del vértice colisionado int nCara; //! Vector con la restricción de movimiento del contacto float RestMovimiento[3]; //! Posición donde se debe mover el vértice para sacarlo de la herramienta float NuevaPosVertice[3]; float desplazamiento; bool posiblePinzamiento; vtkInfoColision() { nHerramienta = nCaja = nDeformable = nEstatico = nVertice = -1; posiblePinzamiento=false; desplazamiento=0.0f; }; void SetnHerramienta(int valor) {nHerramienta = valor;}; int GetnHerramienta() {return this->nHerramienta;}; void SetnCaja(int valor) {nCaja = valor;}; int GetnCaja() {return this->nCaja;}; void SetnDeformable(int valor) {nDeformable = valor;}; int GetnDeformable() {return this->nDeformable;}; void SetnEstatico(int valor) {nEstatico =valor;}; int GetnEstatico() {return this->nEstatico;}; void SetnVertice(int valor) {nVertice =valor;}; int GetnVertice() {return this->nVertice;}; void SetnCara(int valor) {nCara =valor;}; int GetnCara() {return this->nCara;}; // // // // // // // // // // // // // // void SetRestMovimiento(float x, float y, float z) { RestMovimiento[0] =x; RestMovimiento[1] =y; RestMovimiento[2] =z; }; bool GetposiblePinzamiento() {return this->posiblePinzamiento;}; void SetposiblePinzamiento(bool valor) { posiblePinzamiento = valor;}; void SetDesplazamiento(float valor) {desplazamiento =valor;}; float GetDesplazamiento() {return this->desplazamiento;}; private: vtkInfoColision (const vtkInfoColision &);//NotImplemented void operator =(const vtkInfoColision &);//Not Implemented }; #endif