Inherits opentl::core::util::ParameterContainer.
Classes | |
| struct | ShapeData_t |
| Structure for storing object model related shape appearance data required for fast visibility calculation. More... | |
Public Types | |
Public Member Functions | |
| void | generatePointQueryList (GLuint &listId, const std::vector< opentl::core::cvdata::ShapeAppearance::Point * > &points, const std::vector< double * > *colors=NULL) |
| Function to generate OpenGL point query list. | |
| opentl::core::cvdata::VisContourSamplePts * | getContourData (int targetId=0) |
| void | init () |
| Initialization. | |
| void | invalidateVisContourPoints () |
| Invalidate all contour point lists. | |
| int | lineQuery () |
| Occlusion query for lines (NOT PRECISE: A SEGMENT CAN BE PARTIALLY VISIBLE!). | |
| int | pointQuery (GLuint queryListId, const std::vector< opentl::core::cvdata::ShapeAppearance::Point * > &points, std::vector< bool > &visPoints) |
| Occlusion query for points (GOOD). | |
| void | sampleContourDebugOutput (void) |
| void | sampleVisContourPoints (const std::vector< boost::shared_ptr< opentl::core::State > > &states, const std::vector< opentl::models::ObjModel * > &objModels) |
| Sample visible contour points for all given state hypothesis (=targets) rendered into a single scene. | |
| void | setupQuery (int n) |
| Generate the occlusion query. | |
| VisibilityCheck (const std::vector< opentl::models::ObjModel * > &objModels, opentl::modelprojection::Warp *warp, opentl::modelprojection::GLScene *scene, const int camIdx) | |
| Constructor. | |
| void | warpScreen (const boost::shared_ptr< opentl::core::State > &state, int targetIdx) |
| Warp contour points from body to screen, and update normals and Jacobians. | |
| virtual | ~VisibilityCheck () |
| Destructor. | |
| opentl::modelprojection::VisibilityCheck::VisibilityCheck | ( | const std::vector< opentl::models::ObjModel * > & | objModels, | |
| opentl::modelprojection::Warp * | warp, | |||
| opentl::modelprojection::GLScene * | scene, | |||
| const int | camIdx | |||
| ) |
| virtual opentl::modelprojection::VisibilityCheck::~VisibilityCheck | ( | ) | [virtual] |
Destructor.
| void opentl::modelprojection::VisibilityCheck::generatePointQueryList | ( | GLuint & | listId, | |
| const std::vector< opentl::core::cvdata::ShapeAppearance::Point * > & | points, | |||
| const std::vector< double * > * | colors = NULL | |||
| ) |
Function to generate OpenGL point query list.
| opentl::core::cvdata::VisContourSamplePts* opentl::modelprojection::VisibilityCheck::getContourData | ( | int | targetId = 0 |
) | [inline] |
| void opentl::modelprojection::VisibilityCheck::init | ( | ) | [virtual] |
| void opentl::modelprojection::VisibilityCheck::invalidateVisContourPoints | ( | ) | [inline] |
Invalidate all contour point lists.
| int opentl::modelprojection::VisibilityCheck::lineQuery | ( | ) |
Occlusion query for lines (NOT PRECISE: A SEGMENT CAN BE PARTIALLY VISIBLE!).
| int opentl::modelprojection::VisibilityCheck::pointQuery | ( | GLuint | queryListId, | |
| const std::vector< opentl::core::cvdata::ShapeAppearance::Point * > & | points, | |||
| std::vector< bool > & | visPoints | |||
| ) |
Occlusion query for points (GOOD).
| void opentl::modelprojection::VisibilityCheck::sampleContourDebugOutput | ( | void | ) |
| void opentl::modelprojection::VisibilityCheck::sampleVisContourPoints | ( | const std::vector< boost::shared_ptr< opentl::core::State > > & | states, | |
| const std::vector< opentl::models::ObjModel * > & | objModels | |||
| ) |
Sample visible contour points for all given state hypothesis (=targets) rendered into a single scene.
| states | vector of targets | |
| objModels | reference to object models |
| void opentl::modelprojection::VisibilityCheck::setupQuery | ( | int | n | ) |
Generate the occlusion query.
| void opentl::modelprojection::VisibilityCheck::warpScreen | ( | const boost::shared_ptr< opentl::core::State > & | state, | |
| int | targetIdx | |||
| ) |
Warp contour points from body to screen, and update normals and Jacobians.
| state | State | |
| targetIdx | State index, within the contour data structure |
1.5.8