Esempio n. 1
0
File: GL.cpp Progetto: Pilatuz/omni
//////////////////////////////////////////////////////////////////////////
// GL Color construction
Color::Color(CCH_type r, CCH_type g, CCH_type b, CCH_type a)
{
	set_R(r);
	set_G(g);
	set_B(b);
	set_A(a);
}
Esempio n. 2
0
File: GL.cpp Progetto: Pilatuz/omni
//////////////////////////////////////////////////////////////////////////
// GL Color construction
Color::Color(CCH_type r, CCH_type g, CCH_type b)
{
	set_R(r);
	set_G(g);
	set_B(b);
	set_A(1.0f);
}
Esempio n. 3
0
File: GL.cpp Progetto: Pilatuz/omni
//////////////////////////////////////////////////////////////////////////
// GL Color default construction
Color::Color()
{
	set_R(0.0f);
	set_G(0.0f);
	set_B(0.0f);
	set_A(1.0f);
}
 //! Wipe out stored data.
 void clear()
 {
    set_x(Teuchos::null);
    set_dxdt(Teuchos::null);
    set_f(Teuchos::null);
    set_A(Teuchos::null);
 }
Esempio n. 5
0
int
main(int argc, char **argv)
{
  static xyc *Z; static nde *N;
  static double **A, *u;

  initop(argc, argv);
  fp2mesh(stdfp(),Z,N);

  ary2(A,dim1(Z)+1, dim1(Z)+1); ary1(u,dim1(Z)+1);

  set_A(Z,N,A); set_u(Z,u);

  esolver(A,u);

  plt(NULL,NULL,Z,N,u); sleep(1000);
  return 0;
}
void interval_set_move_4_discrete_types()
{
    typedef IntervalSet<T> IntervalSetT;
    typedef typename IntervalSetT::interval_type IntervalT;
    typedef std::vector<T> VectorT;

    //JODO static_cast fails for gcc compilers
    //IntervalSetT set_A(boost::move(static_cast<IntervalSetT&>(IntervalSetT(I_D(0,4)))));
    IntervalSetT set_A(boost::move(static_cast<IntervalSetT&>(IntervalSetT(I_D(0,4)).add(I_D(0,0)) )));
    IntervalSetT set_B(boost::move(static_cast<IntervalSetT&>(IntervalSetT(I_D(0,2)).add(I_D(2,4)).add(I_D(0,4)))));

    BOOST_CHECK( icl::is_element_equal(set_A, set_B) );
    BOOST_CHECK_EQUAL( set_A, join(set_B) );

    //JODO static_cast fails for gcc compilers
    //set_A = boost::move(static_cast<IntervalSetT&>(IntervalSetT(I_I(1,4))));
    set_A = boost::move(static_cast<IntervalSetT&>(IntervalSetT(I_I(1,4)).add(I_D(0,0))));
    set_B = boost::move(static_cast<IntervalSetT&>(IntervalSetT(C_I(0,2)).insert(I_D(3,5)).add(C_D(0,5))));

    BOOST_CHECK( icl::is_element_equal(set_A, set_B) );
    BOOST_CHECK_EQUAL( set_A, join(set_B) );
}