contrib/brl/bmvl/bcal/bcal_camera_node.cxx

Go to the documentation of this file.
00001 // bcal_camera_node.cpp: implementation of the bcal_camera_node class.
00002 //
00003 //////////////////////////////////////////////////////////////////////
00004 
00005 #include "bcal_camera_node.h"
00006 #include "bcal_camera.h"
00007 
00008 //////////////////////////////////////////////////////////////////////
00009 // Construction/Destruction
00010 //////////////////////////////////////////////////////////////////////
00011 
00012 bcal_camera_node::bcal_camera_node(int id)
00013 {
00014   cam_ = new bcal_camera(id);
00015   num_views_ = 0;
00016 }
00017 
00018 bcal_camera_node::~bcal_camera_node()
00019 {
00020   if (cam_)
00021     delete cam_;
00022 }
00023 
00024 void bcal_camera_node::set_beat(vcl_vector<double> const& new_beat)
00025 {
00026   num_views_ = new_beat.size();
00027 
00028   // clear motion vector:
00029   //bcal_camera_node::set_motion(vcl_vector<vcsl_spatial_transformation_sptr>());
00030 }
00031 
00032 vnl_double_3x3 bcal_camera_node::get_intrinsic() const
00033 {
00034   return cam_->get_intrisic_matrix();
00035 }
00036 
00037 void bcal_camera_node::set_intrinsic(vnl_double_3x3 k)
00038 {
00039   cam_->set_intrisic_matrix(k);
00040 }
00041 
00042 int bcal_camera_node::get_id() const
00043 {
00044   return cam_->getID();
00045 }

Generated on Sat Sep 6 05:24:53 2008 for contrib/brl/bmvl/bcal by  doxygen 1.5.1