::CGAL::PointStyle Qt_widget_style::getPointStyle(QString name)
  {
    if( ! map.contains(name) )
      return PointStyle();
    else
      {
	CGAL_assertion( map[name].type() == QVariant::UInt );
	return PointStyle(map[name].asUInt());
      }
  }
Esempio n. 2
0
PointStyle PointStyle::defaultAxesCurve ()
{
  return PointStyle (POINT_SHAPE_CROSS,
                     DEFAULT_POINT_RADIUS,
                     DEFAULT_LINE_WIDTH,
                     COLOR_PALETTE_RED);
}
Esempio n. 3
0
PointStyle PointStyle::defaultGraphCurve (int index)
{
  PointShape shape = POINT_SHAPE_CROSS;
  static PointShape pointShapes [] = {POINT_SHAPE_CROSS,
                                      POINT_SHAPE_X,
                                      POINT_SHAPE_DIAMOND,
                                      POINT_SHAPE_SQUARE};
  shape = pointShapes [index % 4];

  return PointStyle (shape,
                     DEFAULT_POINT_RADIUS,
                     DEFAULT_LINE_WIDTH,
                     COLOR_PALETTE_BLUE);
}