makeup|SDK makeup|SDK is a library based on visage|SDK face tracking used to configure and render virtual makeup.

Loading...
Searching...
No Matches
FeatureTemplate.h
1#import <UIKit/UIKit.h>
2
12@interface FilterParameterTemplate:NSObject
13
17@property(nonatomic , strong) NSString* name;
18
22@property(nonatomic , strong) NSString* value;
23
27@property(nonatomic , strong) NSString* type;
28
29@end
30
46@interface FilterTemplate:NSObject
47
51 @property(nonatomic , strong) NSString* name;
52
56 @property(nonatomic , strong) NSMutableArray<FilterParameterTemplate*>* parameters;
57
58
62- (id)init;
63
69+ (FilterTemplate*) FromJSON: (NSDictionary*) jsonDictionary;
70
71
76- (NSMutableDictionary*) ToJSON;
77@end
78
92@interface FilterQueueTemplate:NSObject
93
97 @property(nonatomic , strong) NSString* blend;
98
111@property(nonatomic , strong) NSString* origin;
112
116@property(nonatomic , strong) NSMutableArray<FilterTemplate*> *preprocess;
117
121@property(nonatomic , strong) NSMutableArray<FilterTemplate*> *postprocess;
122
126@property(nonatomic , assign) Boolean switchLayers;
127
128
129
133- (id)init;
134
140+ (FilterQueueTemplate*) FromJSON: (NSDictionary*) jsonDictionary;
141
146-(NSMutableDictionary*)ToJSON;
147@end
148
157@interface MaskTemplate:NSObject
158
162 @property(nonatomic , strong) NSString* name;
163
167 @property(nonatomic , strong) NSString* texture;
168
169
175+ (MaskTemplate*) FromJSON: (NSDictionary*) jsonDictionary;
176
177
182- (NSMutableDictionary*)ToJSON;
183@end
184
190@interface PipeTemplate:NSObject
194 @property(nonatomic , strong) NSMutableArray<FilterQueueTemplate *> *filters;
195
199 @property(nonatomic , strong) NSMutableArray<MaskTemplate *> *masks;
200
204- (id)init;
205
211+(PipeTemplate*)FromJSON:(NSDictionary*)jsonDictionary;
212
217-(NSMutableDictionary*)ToJSON;
218@end
219
225@interface FinishTemplate:NSObject
229@property(nonatomic , strong) NSString* name;
230
234@property(nonatomic , assign) double transparency;
235
239@property(nonatomic , strong) PipeTemplate *pipeline;
240
246+ (FinishTemplate*) FromJSON: (NSDictionary*) jsonDictionary;
247
253+ (FinishTemplate*) FromJSONString: (NSString*) JSON_data;
254
259- (NSMutableDictionary*)ToJSON;
260
266- (NSString*)ToJSONString;
267
268@end
269
273@interface FinishTemplateRepository:NSObject
274
275@property(nonatomic , strong) NSMutableArray<FinishTemplate*> *finishTemplates;
276
277
281- (id)init;
282
288+ (FinishTemplateRepository*)FromJSON:(NSDictionary*)JSON_data;
289
295+ (FinishTemplateRepository*)FromJSONString:(NSString*)JSON_data;
296
302- (FinishTemplate*)Get:(int)i;
303
308- (int)GetCount;
309
314- (void)Add:(FinishTemplate*)finishTemplate;
315
320- (NSMutableDictionary*)ToJSON;
321
326- (NSString*)ToJSONString;
327
328@end
329
330
335@interface Color:NSObject
336
337 @property(nonatomic, assign) float r;
338 @property(nonatomic, assign) float g;
339 @property(nonatomic, assign) float b;
340 @property(nonatomic, assign) float a;
341
345- (id)init;
346
354- (id)initWithRed:(float)red andGreen:(float)green andBlue:(float)blue andAlpha:(float)alpha;
355
361+(Color*)FromJSON:(NSDictionary*)jsonDictionary;
362
367- (NSMutableDictionary*) ToJSON;
368@end
369
370@interface BoundingBox:NSObject
371
372 @property(nonatomic, assign) float x_lowerLeft;
373 @property(nonatomic, assign) float y_lowerLeft;
374 @property(nonatomic, assign) float x_upperRight;
375 @property(nonatomic, assign) float y_upperRight;
376
377- (id)init;
378
379- (id)initWithXLowerLeft:(float)x_lowerLeft andYLowerLeft:(float)y_lowerLeft andXUpperRight:(float)x_upperRight andYUpperRight:(float)y_upperRight;
380
381+(BoundingBox*)FromJSON:(NSDictionary*)jsonDictionary;
382
383- (NSMutableDictionary*) ToJSON;
384
385- (NSString*)ToJSONString;
386@end
387
415@interface ElementTemplate:NSObject
416
420 @property(nonatomic, strong) NSString* name;
421
425 @property(nonatomic, strong) NSString* area;
426
430 @property(nonatomic, strong) NSString* texture;
431
435 @property(nonatomic, strong) Color* color;
436
440 @property(nonatomic, strong) PipeTemplate *pipeline;
441
446 @property(nonatomic, assign) Boolean useColor;
447
452 @property(nonatomic, assign) Boolean useTexture;
453
454
460+ (ElementTemplate*) FromJSON: (NSDictionary*) jsonDictionary;
461
466- (NSMutableDictionary*) ToJSON;
467@end
468
502@interface FeatureTemplate:NSObject
506 @property(nonatomic, strong) NSString* name;
507
511 @property(nonatomic, strong) NSString* type;
512
516 @property(nonatomic, strong) NSMutableArray<ElementTemplate*> *elements;
517
523+ (FeatureTemplate*)FromJSONString:(NSString*)JSON_data;
524
530+ (FeatureTemplate*) FromJSON: (NSDictionary*) jsonDictionary;
531
536- (NSMutableDictionary*)ToJSON;
537
543- (NSString*)ToJSONString;
544
545@end
546
550@interface FeatureTemplateRepository:NSObject
551{
552 NSMutableArray<FeatureTemplate*> *featureTemplates;
553}
554
558- (id)init;
559
565- (FeatureTemplate*)Get:(int)i;
566
571- (int)GetCount;
572
577- (void)Add:(FeatureTemplate*)featureTemplate;
578
584+ (FeatureTemplateRepository*)FromJSON:(NSDictionary*)JSON_data;
585
591+ (FeatureTemplateRepository*)FromJSONString:(NSString*)JSON_data;
592
597- (NSMutableDictionary*)ToJSON;
598
604- (NSString*)ToJSONString;
605
606@end
607
608
636@interface Element:NSObject
637
641 @property(nonatomic, strong) NSString* name;
642
646 @property(nonatomic, strong) NSString* area;
647
651 @property(nonatomic, strong) NSString* texture;
652
656 @property(nonatomic, strong) Color* color;
657
662 @property(nonatomic, assign) Boolean useColor;
663
668 @property(nonatomic, assign) Boolean useTexture;
669
670
675-(NSString*)GetName;
676
681-(NSString*)GetArea;
682
687-(void)SetArea:(NSString*)area;
688
693-(Color*)GetColor;
694
699-(void)SetColor:(Color*)color;
700
705-(NSString*)GetTexture;
706
711-(void)SetTexture:(NSString*)texture;
712
713
719+ (Element*) FromJSON: (NSDictionary*) jsonDictionary;
720
725- (NSMutableDictionary*)ToJSON;
726
727@end
728
739@interface Effect:NSObject
740{
744 @private unsigned int pk;
745
749 @private NSString* name;
750
754 @private NSString* type;
755
759 @private NSMutableArray<Element*> *elements;
760
761 @private BoundingBox* boundingBox;
762}
763
768-(unsigned int)GetID;
769
774-(NSString*)GetName;
775
780-(NSString*)GetType;
781
786-(NSMutableArray*)GetElements;
787
792-(NSArray*)GetBoundingBox;
793
798-(void)SetBoundingBox:(NSArray*) boundingBox;
799
805+ (Effect*)FromJSONString:(NSString*)JSON_data;
806
812+ (Effect*) FromJSON: (NSDictionary*) jsonDictionary;
813
818- (NSMutableDictionary*)ToJSON;
819
824- (NSString*)ToJSONString;
825
826@end
Color
Definition FeatureTemplate.h:336
Effect
Definition FeatureTemplate.h:740
Element
Definition FeatureTemplate.h:637
ElementTemplate
Definition FeatureTemplate.h:416
FeatureTemplate
Definition FeatureTemplate.h:503
FeatureTemplateRepository
Definition FeatureTemplate.h:551
FilterParameterTemplate
Definition FeatureTemplate.h:13
FilterParameterTemplate::type
NSString * type
Definition FeatureTemplate.h:27
FilterParameterTemplate::name
NSString * name
Definition FeatureTemplate.h:17
FilterParameterTemplate::value
NSString * value
Definition FeatureTemplate.h:22
FilterQueueTemplate
Definition FeatureTemplate.h:93
FilterTemplate
Definition FeatureTemplate.h:47
FinishTemplate
Definition FeatureTemplate.h:226
FinishTemplateRepository
Definition FeatureTemplate.h:274
MaskTemplate
Definition FeatureTemplate.h:158
PipeTemplate
Definition FeatureTemplate.h:191