Hook_VClient_RenderView::~Hook_VClient_RenderView() { ExportEnd(); ImportEnd(); delete m_CamExport; delete m_CamImport; }
bool Hook_VClient_RenderView::ImportBegin(wchar_t const *fileName) { ImportEnd(); m_Import = g_BvhImport.LoadMotionFile(fileName); return m_Import; }
bool Hook_VClient_RenderView::ImportToCamPath(bool adjustInterp, double fov) { if(!m_Import) return false; bool bOk = g_BvhImport.CopyToCampath(m_ImportBaseTime, fov, m_CamPath); if(bOk) { ImportEnd(); if(adjustInterp) { m_CamPath.PositionInterpMethod_set(CamPath::DI_LINEAR); m_CamPath.RotationInterpMethod_set(CamPath::QI_SLINEAR); m_CamPath.FovInterpMethod_set(CamPath::DI_LINEAR); } m_CamPath.Enabled_set(true); } return bOk; }
Hook_VClient_RenderView::~Hook_VClient_RenderView() { ExportEnd(); ImportEnd(); }