示例#1
0
void MovableObject::callback_scale(const glm::vec3 &scale) {
	scale_ = scale;
	scale_matrix_dirty_ = true;
	scale_changed();

	matrix_becomes_dirty();
}
示例#2
0
void
dmz::QtCanvasView::set_scale (const qreal Value) {

   qreal scaleValue (Value ? Value : 1.0f);

   QMatrix transform (matrix ());

   transform.reset ();
   transform.scale (scaleValue, scaleValue);

   setMatrix (transform);

   emit scale_changed (scaleValue);
}
示例#3
0
void
dmz::QtCanvasView::set_scale (const qreal Value) {

   if (Value) {
      
      QMatrix transform (matrix ());

      transform.reset ();
      transform.scale (Value, Value);

      setMatrix (transform);

      emit scale_changed (Value);
   }
}
示例#4
0
Ruler::Ruler(View &parent) :
	MarginWidget(parent)
{
	setMouseTracking(true);

	connect(&view_, SIGNAL(hover_point_changed()),
		this, SLOT(hover_point_changed()));
	connect(&view_, SIGNAL(offset_changed()),
		this, SLOT(invalidate_tick_position_cache()));
	connect(&view_, SIGNAL(scale_changed()),
		this, SLOT(invalidate_tick_position_cache()));
	connect(&view_, SIGNAL(tick_prefix_changed()),
		this, SLOT(invalidate_tick_position_cache()));
	connect(&view_, SIGNAL(tick_precision_changed()),
		this, SLOT(invalidate_tick_position_cache()));
	connect(&view_, SIGNAL(tick_period_changed()),
		this, SLOT(invalidate_tick_position_cache()));
	connect(&view_, SIGNAL(time_unit_changed()),
		this, SLOT(invalidate_tick_position_cache()));
}
示例#5
0
void MovableObject::set_scale(const glm::vec3 &scale) {
	scale_ = scale;
	scale_matrix_dirty_ = true;
	scale_changed();
}
示例#6
0
void MovableObject::set_scale(const float &scale) {
	set_scale(glm::vec3(scale));
	scale_changed();
}