Geometrize  1.0
An application for geometrizing images into geometric primitives
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Friends Macros
Classes | Enumerations | Functions
geometrize::scene Namespace Reference

Classes

class  AreaOfInfluenceShapeItem
 The AreaOfInfluenceShapeItem class represents a graphical visualization of a shape that the user interacts with to control where shapes are spawned/mutated as an image is geometrized. More...
 
class  TabletEventData
 The TabletEventData class represents data produced from a Wacom pen/tablet event (in the context of a graphics view) More...
 
class  CustomTabletEvent
 The CustomTabletEvent class represents a tablet event (specifically from a Wacom Pro pen) that can be passed down to items in a graphics scene. More...
 
class  ImageTaskGraphicsView
 The ImageTaskGraphicsView class models a graphics view for viewing the images and shapes used and/or produced by image tasks. More...
 
class  ImageTaskPixmapGraphicsItem
 The ImageTaskPixmapGraphicsItem class models a pixmap graphic item that goes into the scene for an image task. This usually represents a pixmap of the working image that is being transformed into shapes. More...
 
class  ImageTaskPixmapScene
 The ImageTaskPixmapScene class models a graphics scene for viewing the pixmap-based results of image tasks. More...
 
class  ImageTaskScene
 The ImageTaskScene class models a graphics scene for viewing the results of image tasks. More...
 
class  ImageTaskSceneManager
 The ImageTaskSceneManager manages the scenes representing the graphical state of the shapes It mostly works to synchronize their state and provide a single interface for handling scene events. More...
 
class  ImageTaskSvgScene
 The ImageTaskSvgScene class models a graphics scene for viewing the shape data of an image task as an SVG. More...
 
class  SvgItem
 The SvgItem class represents an SVG graphic that is drawn as part of a scene. More...
 

Enumerations

enum  TabletEventType {
  TabletEventType::Move, TabletEventType::Press, TabletEventType::Release, TabletEventType::EnterProximity,
  TabletEventType::LeaveProximity, TabletEventType::Unknown
}
 The TabletEventType enum represents the ids of tablet events the Wacom pen/tablet generates. More...
 
enum  TabletEventPointerType { TabletEventPointerType::UnknownPointer, TabletEventPointerType::Pen, TabletEventPointerType::Cursor, TabletEventPointerType::Eraser }
 The TabletEventPointerType enum represents the type of pointer generating the tablet event. More...
 

Functions

QString tabletEventTypeToString (const TabletEventType &type)
 tabletEventTypeToString Helper function to convert a tablet event type enum value to a string More...
 
QString tabletEventPointerTypeToString (const TabletEventPointerType &type)
 tabletEventPointerTypeToString Helper function to convert a tablet event pointer type enum value to a string More...
 
QString tabletEventDataToString (const TabletEventData &data)
 tabletEventDataToString Helper function to convert a structure of tablet event data to a string More...
 

Enumeration Type Documentation

The TabletEventPointerType enum represents the type of pointer generating the tablet event.

Enumerator
UnknownPointer 
Pen 
Cursor 
Eraser 

The TabletEventType enum represents the ids of tablet events the Wacom pen/tablet generates.

Enumerator
Move 
Press 
Release 
EnterProximity 
LeaveProximity 
Unknown 

Function Documentation

QString geometrize::scene::tabletEventDataToString ( const TabletEventData &  data)

tabletEventDataToString Helper function to convert a structure of tablet event data to a string

Parameters
tabletEventDataThe tablet event data type
Returns
A human-readable string describing the tablet event data
45 {
46  const QString s = "Tablet event type: " + tabletEventTypeToString(data.eventType) + ", " +
47  "Pointer type: " + tabletEventPointerTypeToString(data.pointerType) + ", " +
48  "View pos: " + QString::number(data.xViewPos, 'g', 8) + ", " + QString::number(data.yViewPos, 'g', 8) + ", " +
49  "Scene pos: " + QString::number(data.xScenePos, 'g', 8) + ", " + QString::number(data.yScenePos, 'g', 8) + ", " +
50  "Pressure: " + QString::number(data.pressure, 'g', 8) + ", " +
51  "Tangential pressure: " + QString::number(data.tangentialPressure, 'g', 8) + ", " +
52  "Rotation: " + QString::number(data.rotation, 'g', 8) + ", " +
53  "Tilt: " + QString::number(data.xTilt, 'g', 8) + ", " + QString::number(data.yTilt, 'g', 8);
54  return s;
55 }
QString tabletEventTypeToString(const TabletEventType &type)
tabletEventTypeToString Helper function to convert a tablet event type enum value to a string ...
Definition: customtabletevent.cpp:12
QString tabletEventPointerTypeToString(const TabletEventPointerType &type)
tabletEventPointerTypeToString Helper function to convert a tablet event pointer type enum value to a...
Definition: customtabletevent.cpp:30

Here is the call graph for this function:

Here is the caller graph for this function:

QString geometrize::scene::tabletEventPointerTypeToString ( const TabletEventPointerType &  type)

tabletEventPointerTypeToString Helper function to convert a tablet event pointer type enum value to a string

Parameters
typeThe tablet event pointer type
Returns
String name of the tablet pointer event type
31 {
32  switch(type) {
33  case TabletEventPointerType::Pen:
34  return "Pen";
35  case TabletEventPointerType::Cursor:
36  return "Cursor";
37  case TabletEventPointerType::Eraser:
38  return "Eraser";
39  default:
40  return "Unknown";
41  }
42 }

Here is the caller graph for this function:

QString geometrize::scene::tabletEventTypeToString ( const TabletEventType &  type)

tabletEventTypeToString Helper function to convert a tablet event type enum value to a string

Parameters
typeThe tablet event type
Returns
String name of the tablet event type
13 {
14  switch(type) {
15  case TabletEventType::Move:
16  return "Move";
17  case TabletEventType::Press:
18  return "Press";
19  case TabletEventType::Release:
20  return "Release";
21  case TabletEventType::EnterProximity:
22  return "Enter Proximity";
23  case TabletEventType::LeaveProximity:
24  return "Leave Proximity";
25  default:
26  return "Unknown";
27  }
28 }

Here is the caller graph for this function: