예제 #1
0
void mitk::Material::PrintSelf ( std::ostream &os, itk::Indent /* unused */ ) const
{
  os << "Name: " << GetName() << std::endl;
  os << "Color: " << GetColor() << std::endl;
  os << "ColorCoefficient" << GetColorCoefficient() << std::endl;
  os << "SpecularColor: " << GetSpecularColor() << std::endl;
  os << "SpecularCoefficient: " << GetSpecularCoefficient() << std::endl;
  os << "SpecularPower: " << GetSpecularPower() << std::endl;
  os << "Opacity: " << GetOpacity() << std::endl;
  os << "Line width: " << GetLineWidth() << std::endl;
  switch ( GetInterpolation() )
  {
  case ( Flat ) : os << "Interpolation: Flat" << std::endl;
    break;
  case ( Gouraud ) : os << "Interpolation: Gouraud" << std::endl;
    break;
  case ( Phong ) : os << "Interpolation: Phong" << std::endl;
    break;
  }
  switch ( GetRepresentation() )
  {
  case ( Points ) : os << "Representation: Points" << std::endl;
    break;
  case ( Wireframe ) : os << "Representation: Wireframe" << std::endl;
    break;
  case ( Surface ) : os << "Representation: Surface" << std::endl;
    break;
  }
}
예제 #2
0
파일: cstp.cpp 프로젝트: zhao07/leechcraft
	void CSTP::handleTasksTreeSelectionCurrentRowChanged (const QModelIndex& si, const QModelIndex&)
	{
		QModelIndex index = Core::Instance ().GetCoreProxy ()->MapToSource (si);
		if (index.model () != GetRepresentation ())
			index = QModelIndex ();
		Core::Instance ().ItemSelected (index);
	}
예제 #3
0
	void Aggregator::handleTasksTreeSelectionCurrentRowChanged (const QModelIndex& index, const QModelIndex&)
	{
		QModelIndex si = Core::Instance ().GetProxy ()->MapToSource (index);
		if (si.model () != GetRepresentation ())
			si = QModelIndex ();
		si = Core::Instance ().GetJobHolderRepresentation ()->SelectionChanged (si);
		Impl_->SelectedRepr_ = si;
		Core::Instance ().GetReprWidget ()->CurrentChannelChanged (si);
	}
예제 #4
0
    int FisherVectorFace::GetBinaryRepresentation(const cv::Mat& img, std::vector<bool>& binaryRep) const
    {
        std::vector<double> fisherRep;
        if (GetRepresentation(img, fisherRep) != MAGIC_NO_ERROR)
        {
            return MAGIC_INVALID_RESULT;
        }

        binaryRep.clear();
        return BinaryCompression(fisherRep, binaryRep);
    }
예제 #5
0
void IMovable::Represent()
{
    Representation::Entity ent;
    ent.id = GetId();
    ent.pos_x = GetX();
    ent.pos_y = GetY();
    ent.vlevel = v_level;
    ent.view = *GetView();
    ent.dir = GetDir();
    GetRepresentation().AddToNewFrame(ent);
}
예제 #6
0
mitk::Material::Material( mitk::Material::Color color, vtkFloatingPointType colorCoefficient, vtkFloatingPointType specularCoefficient, vtkFloatingPointType specularPower, vtkFloatingPointType opacity )
{
  InitializeStandardValues();
  SetColor( color );
  SetColorCoefficient( colorCoefficient );
  SetSpecularColor( GetSpecularColor() );
  SetSpecularCoefficient( specularCoefficient );
  SetSpecularPower( specularPower );
  SetOpacity( opacity );
  SetInterpolation( GetInterpolation() );
  SetRepresentation( GetRepresentation() );
  SetLineWidth( GetLineWidth() );
}
예제 #7
0
mitk::Material::Material(  )
{
  InitializeStandardValues();
  SetColor( GetColor() );
  SetColorCoefficient( GetColorCoefficient() );
  SetSpecularColor( GetSpecularColor() );
  SetSpecularCoefficient( GetSpecularCoefficient() );
  SetSpecularPower( GetSpecularPower() );
  SetOpacity( GetOpacity() );
  SetInterpolation( GetInterpolation() );
  SetRepresentation( GetRepresentation() );
  SetLineWidth( GetLineWidth() );
}
예제 #8
0
파일: mitkMaterial.cpp 프로젝트: 0r/MITK
mitk::Material::Material( Color color, double opacity )
{
  InitializeStandardValues();
  SetColor( color );
  SetColorCoefficient( GetColorCoefficient() );
  SetSpecularColor( GetSpecularColor() );
  SetSpecularCoefficient( GetSpecularCoefficient() );
  SetSpecularPower( GetSpecularPower() );
  SetOpacity( opacity );
  SetInterpolation( GetInterpolation() );
  SetRepresentation( GetRepresentation() );
  SetLineWidth( GetLineWidth() );
  m_Name = "";
}
예제 #9
0
mitk::Material::Material( vtkFloatingPointType red, vtkFloatingPointType green, vtkFloatingPointType blue, vtkFloatingPointType opacity )
{
  InitializeStandardValues();
  SetColor( red, green, blue );
  SetColorCoefficient( GetColorCoefficient() );
  SetSpecularColor( GetSpecularColor() );
  SetSpecularCoefficient( GetSpecularCoefficient() );
  SetSpecularPower( GetSpecularPower() );
  SetOpacity( opacity );
  SetInterpolation( GetInterpolation() );
  SetRepresentation( GetRepresentation() );
  SetLineWidth( GetLineWidth() );
  m_Name = "";
}
예제 #10
0
파일: mitkMaterial.cpp 프로젝트: 0r/MITK
mitk::Material::Material( double red, double green, double blue,
    double colorCoefficient, double specularCoefficient,
    double specularPower, double opacity )
{
  InitializeStandardValues();
  SetColor( red, green, blue );
  SetColorCoefficient( colorCoefficient );
  SetSpecularColor( GetSpecularColor() );
  SetSpecularCoefficient( specularCoefficient );
  SetSpecularPower( specularPower );
  SetOpacity( opacity );
  SetInterpolation( GetInterpolation() );
  SetRepresentation( GetRepresentation() );
  SetLineWidth( GetLineWidth() );
  m_Name = "";
}
예제 #11
0
cplx Wavefunction<Rank>::LocalInnerProduct(const Wavefunction<Rank> &psi) const
{
	return GetRepresentation()->InnerProduct(psi, *this);
}
예제 #12
0
 const SkBitmap* Image::ToSkBitmap() const
 {
     internal::ImageRep* rep = GetRepresentation(Image::kImageRepSkia);
     return rep->AsImageRepSkia()->bitmap();
 }
예제 #13
0
 size_t Image::GetNumberOfSkBitmaps() const 
 {
     return GetRepresentation(Image::kImageRepSkia)->AsImageRepSkia()->
         bitmaps().size();
 }
예제 #14
0
 const SkBitmap* Image::GetSkBitmapAtIndex(size_t index) const
 {
     return GetRepresentation(Image::kImageRepSkia)->AsImageRepSkia()->
         bitmaps()[index];
 }
예제 #15
0
double Wavefunction<Rank>::GetNorm() const
{
	double localNorm = GetLocalNorm();
	return sqrt(GetRepresentation()->GetDistributedModel()->GetGlobalSum(localNorm));
}
예제 #16
0
double Wavefunction<Rank>::GetLocalNorm() const
{
	return GetRepresentation()->InnerProduct(*this, *this).real();
}
예제 #17
0
cplx Wavefunction<Rank>::InnerProduct(const Wavefunction<Rank> &psi) const
{
	cplx localInnerProd = LocalInnerProduct(psi);
	return GetRepresentation()->GetDistributedModel()->GetGlobalSum(localInnerProd);
}