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; } }
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); }
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); }
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); }
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); }
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() ); }
mitk::Material::Material( ) { InitializeStandardValues(); SetColor( GetColor() ); SetColorCoefficient( GetColorCoefficient() ); SetSpecularColor( GetSpecularColor() ); SetSpecularCoefficient( GetSpecularCoefficient() ); SetSpecularPower( GetSpecularPower() ); SetOpacity( GetOpacity() ); SetInterpolation( GetInterpolation() ); SetRepresentation( GetRepresentation() ); SetLineWidth( GetLineWidth() ); }
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 = ""; }
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 = ""; }
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 = ""; }
cplx Wavefunction<Rank>::LocalInnerProduct(const Wavefunction<Rank> &psi) const { return GetRepresentation()->InnerProduct(psi, *this); }
const SkBitmap* Image::ToSkBitmap() const { internal::ImageRep* rep = GetRepresentation(Image::kImageRepSkia); return rep->AsImageRepSkia()->bitmap(); }
size_t Image::GetNumberOfSkBitmaps() const { return GetRepresentation(Image::kImageRepSkia)->AsImageRepSkia()-> bitmaps().size(); }
const SkBitmap* Image::GetSkBitmapAtIndex(size_t index) const { return GetRepresentation(Image::kImageRepSkia)->AsImageRepSkia()-> bitmaps()[index]; }
double Wavefunction<Rank>::GetNorm() const { double localNorm = GetLocalNorm(); return sqrt(GetRepresentation()->GetDistributedModel()->GetGlobalSum(localNorm)); }
double Wavefunction<Rank>::GetLocalNorm() const { return GetRepresentation()->InnerProduct(*this, *this).real(); }
cplx Wavefunction<Rank>::InnerProduct(const Wavefunction<Rank> &psi) const { cplx localInnerProd = LocalInnerProduct(psi); return GetRepresentation()->GetDistributedModel()->GetGlobalSum(localInnerProd); }