@@ -282,6 +282,69 @@ void makePyAcadPViewportWrapper()
282
282
{
283
283
PyDocString DS (" AcadPViewport" );
284
284
class_<PyAcadPViewport, bases<PyAcadEntity>>(" AcadPViewport" , boost::python::no_init)
285
+ .def (" center" , &PyAcadPViewport::center, DS.ARGS ())
286
+ .def (" setCenter" , &PyAcadPViewport::setCenter, DS.ARGS ({ " val:PyGe.Point3d" }))
287
+ .def (" direction" , &PyAcadPViewport::direction, DS.ARGS ())
288
+ .def (" setDirection" , &PyAcadPViewport::setDirection, DS.ARGS ({ " val:PyGe.Vector3d" }))
289
+ .def (" gridOn" , &PyAcadPViewport::gridOn, DS.ARGS ())
290
+ .def (" setGridOn" , &PyAcadPViewport::setGridOn, DS.ARGS ({ " val:bool" }))
291
+ .def (" height" , &PyAcadPViewport::height, DS.ARGS ())
292
+ .def (" setHeight" , &PyAcadPViewport::setHeight, DS.ARGS ({ " val:float" }))
293
+ .def (" width" , &PyAcadPViewport::width, DS.ARGS ())
294
+ .def (" setWidth" , &PyAcadPViewport::setWidth, DS.ARGS ({ " val:float" }))
295
+ .def (" viewportOn" , &PyAcadPViewport::viewportOn, DS.ARGS ())
296
+ .def (" setViewportOn" , &PyAcadPViewport::setViewportOn, DS.ARGS ({ " val:bool" }))
297
+ .def (" clipped" , &PyAcadPViewport::clipped, DS.ARGS ())
298
+ .def (" displayLocked" , &PyAcadPViewport::displayLocked, DS.ARGS ())
299
+ .def (" setDisplayLocked" , &PyAcadPViewport::setDisplayLocked, DS.ARGS ({ " val:bool" }))
300
+ .def (" standardScale" , &PyAcadPViewport::standardScale, DS.ARGS ())
301
+ .def (" setStandardScale" , &PyAcadPViewport::setStandardScale, DS.ARGS ({ " val:PyAx.AcViewportScale" }))
302
+ .def (" customScale" , &PyAcadPViewport::customScale, DS.ARGS ())
303
+ .def (" setCustomScale" , &PyAcadPViewport::setCustomScale, DS.ARGS ({ " val:float" }))
304
+ .def (" styleSheet" , &PyAcadPViewport::styleSheet, DS.ARGS ())
305
+ .def (" setStyleSheet" , &PyAcadPViewport::setStyleSheet, DS.ARGS ({ " val:str" }))
306
+ .def (" ucsPerViewport" , &PyAcadPViewport::ucsPerViewport, DS.ARGS ())
307
+ .def (" setUCSPerViewport" , &PyAcadPViewport::setUCSPerViewport, DS.ARGS ({ " val:bool" }))
308
+ .def (" snapBasePoint" , &PyAcadPViewport::snapBasePoint, DS.ARGS ())
309
+ .def (" setSnapBasePoint" , &PyAcadPViewport::setSnapBasePoint, DS.ARGS ({ " val:PyGe.Point2d" }))
310
+ .def (" snapOn" , &PyAcadPViewport::snapOn, DS.ARGS ())
311
+ .def (" setSnapOn" , &PyAcadPViewport::setSnapOn, DS.ARGS ({ " val:bool" }))
312
+ .def (" snapRotationAngle" , &PyAcadPViewport::snapRotationAngle, DS.ARGS ())
313
+ .def (" setSnapRotationAngle" , &PyAcadPViewport::setSnapRotationAngle, DS.ARGS ({ " val:float" }))
314
+ .def (" ucsIconOn" , &PyAcadPViewport::ucsIconOn, DS.ARGS ())
315
+ .def (" setUCSIconOn" , &PyAcadPViewport::setUCSIconOn, DS.ARGS ({ " val:bool" }))
316
+ .def (" ucsIconAtOrigin" , &PyAcadPViewport::ucsIconAtOrigin, DS.ARGS ())
317
+ .def (" setUCSIconAtOrigin" , &PyAcadPViewport::setUCSIconAtOrigin, DS.ARGS ({ " val:bool" }))
318
+ .def (" gridSpacing" , &PyAcadPViewport::gridSpacing, DS.ARGS ())
319
+ .def (" setGridSpacing" , &PyAcadPViewport::setGridSpacing, DS.ARGS ({ " XSpacing:float" , " YSpacing:float" }))
320
+ .def (" snapSpacing" , &PyAcadPViewport::snapSpacing, DS.ARGS ())
321
+ .def (" setSnapSpacing" , &PyAcadPViewport::setSnapSpacing, DS.ARGS ({ " XSpacing:float" , " YSpacing:float" }))
322
+ .def (" display" , &PyAcadPViewport::display, DS.ARGS ())
323
+ .def (" twistAngle" , &PyAcadPViewport::twistAngle, DS.ARGS ())
324
+ .def (" setTwistAngle" , &PyAcadPViewport::setTwistAngle, DS.ARGS ({ " val:bool" }))
325
+ .def (" lensLength" , &PyAcadPViewport::lensLength, DS.ARGS ())
326
+ .def (" setLensLength" , &PyAcadPViewport::setLensLength, DS.ARGS ({ " val:float" }))
327
+ .def (" removeHiddenLines" , &PyAcadPViewport::removeHiddenLines, DS.ARGS ())
328
+ .def (" setRemoveHiddenLines" , &PyAcadPViewport::setRemoveHiddenLines, DS.ARGS ({ " val:bool" }))
329
+ .def (" target" , &PyAcadPViewport::target, DS.ARGS ())
330
+ .def (" setTarget" , &PyAcadPViewport::setTarget, DS.ARGS ({ " val:PyGe.Point3d" }))
331
+ .def (" arcSmoothness" , &PyAcadPViewport::arcSmoothness, DS.ARGS ())
332
+ .def (" setArcSmoothness" , &PyAcadPViewport::setArcSmoothness, DS.ARGS ({ " val:int" }))
333
+ .def (" visualStyle" , &PyAcadPViewport::visualStyle, DS.ARGS ())
334
+ .def (" setVisualStyle" , &PyAcadPViewport::setVisualStyle, DS.ARGS ({ " val:int" }))
335
+ .def (" shadePlot" , &PyAcadPViewport::shadePlot, DS.ARGS ())
336
+ .def (" setShadePlot" , &PyAcadPViewport::setShadePlot, DS.ARGS ({ " val:int" }))
337
+ .def (" modelView" , &PyAcadPViewport::modelView, DS.ARGS ())
338
+ .def (" setModelView" , &PyAcadPViewport::setModelView, DS.ARGS ({ " val:PyAx.AcadView" }))
339
+ .def (" sheetView" , &PyAcadPViewport::sheetView, DS.ARGS ())
340
+ .def (" setSheetView" , &PyAcadPViewport::setSheetView, DS.ARGS ({ " val:PyAx.AcadView" }))
341
+ .def (" labelBlockId" , &PyAcadPViewport::labelBlockId, DS.ARGS ())
342
+ .def (" setLabelBlockId" , &PyAcadPViewport::setLabelBlockId, DS.ARGS ({ " val:PyDb.ObjectId" }))
343
+ .def (" hasSheetView" , &PyAcadPViewport::hasSheetView, DS.ARGS ())
344
+ .def (" syncModelView" , &PyAcadPViewport::syncModelView, DS.ARGS ())
345
+ .def (" standardScale2" , &PyAcadPViewport::standardScale2, DS.ARGS ())
346
+ .def (" setStandardScale2" , &PyAcadPViewport::setStandardScale2, DS.ARGS ({ " val:int" }))
347
+ .def (" layerPropertyOverrides" , &PyAcadPViewport::layerPropertyOverrides, DS.ARGS ())
285
348
.def (" cast" , &PyAcadPViewport::cast, DS.SARGS ({ " otherObject: PyAx.AcadObject" })).staticmethod (" cast" )
286
349
.def (" className" , &PyAcadPViewport::className, DS.SARGS ()).staticmethod (" className" )
287
350
;
@@ -292,6 +355,329 @@ PyAcadPViewport::PyAcadPViewport(std::shared_ptr<PyIAcadPViewportImpl> ptr)
292
355
{
293
356
}
294
357
358
+ AcGePoint3d PyAcadPViewport::center () const
359
+ {
360
+ return impObj ()->GetCenter ();
361
+ }
362
+
363
+ void PyAcadPViewport::setCenter (const AcGePoint3d& val)
364
+ {
365
+ impObj ()->SetCenter (val);
366
+ }
367
+
368
+ AcGeVector3d PyAcadPViewport::direction () const
369
+ {
370
+ return impObj ()->GetDirection ();
371
+ }
372
+
373
+ void PyAcadPViewport::setDirection (const AcGeVector3d& val)
374
+ {
375
+ impObj ()->SetDirection (val);
376
+ }
377
+
378
+ bool PyAcadPViewport::gridOn () const
379
+ {
380
+ return impObj ()->GetGridOn ();
381
+ }
382
+
383
+ void PyAcadPViewport::setGridOn (bool bVisible)
384
+ {
385
+ impObj ()->SetGridOn (bVisible);
386
+ }
387
+
388
+ double PyAcadPViewport::height () const
389
+ {
390
+ return impObj ()->GetHeight ();
391
+ }
392
+
393
+ void PyAcadPViewport::setHeight (double val)
394
+ {
395
+ impObj ()->SetHeight (val);
396
+ }
397
+
398
+ double PyAcadPViewport::width () const
399
+ {
400
+ return impObj ()->GetWidth ();
401
+ }
402
+
403
+ void PyAcadPViewport::setWidth (double val)
404
+ {
405
+ impObj ()->SetWidth (val);
406
+ }
407
+
408
+ bool PyAcadPViewport::viewportOn () const
409
+ {
410
+ return impObj ()->GetViewportOn ();
411
+ }
412
+
413
+ void PyAcadPViewport::setViewportOn (bool bVisible)
414
+ {
415
+ impObj ()->SetViewportOn (bVisible);
416
+ }
417
+
418
+ bool PyAcadPViewport::clipped () const
419
+ {
420
+ return impObj ()->GetClipped ();
421
+ }
422
+
423
+ bool PyAcadPViewport::displayLocked () const
424
+ {
425
+ return impObj ()->GetDisplayLocked ();
426
+ }
427
+
428
+ void PyAcadPViewport::setDisplayLocked (bool bVisible)
429
+ {
430
+ impObj ()->SetDisplayLocked (bVisible);
431
+ }
432
+
433
+ PyAcViewportScale PyAcadPViewport::standardScale () const
434
+ {
435
+ return impObj ()->GetStandardScale ();
436
+ }
437
+
438
+ void PyAcadPViewport::setStandardScale (PyAcViewportScale val)
439
+ {
440
+ impObj ()->SetStandardScale (val);
441
+ }
442
+
443
+ double PyAcadPViewport::customScale () const
444
+ {
445
+ return impObj ()->GetCustomScale ();
446
+ }
447
+
448
+ void PyAcadPViewport::setCustomScale (double val)
449
+ {
450
+ impObj ()->SetCustomScale (val);
451
+ }
452
+
453
+ std::string PyAcadPViewport::styleSheet () const
454
+ {
455
+ return wstr_to_utf8 (impObj ()->GetStyleSheet ());
456
+ }
457
+
458
+ void PyAcadPViewport::setStyleSheet (const std::string& val)
459
+ {
460
+ impObj ()->SetStyleSheet (utf8_to_wstr (val).c_str ());
461
+ }
462
+
463
+ bool PyAcadPViewport::ucsPerViewport () const
464
+ {
465
+ return impObj ()->GetUCSPerViewport ();
466
+ }
467
+
468
+ void PyAcadPViewport::setUCSPerViewport (bool UCSSaved)
469
+ {
470
+ impObj ()->SetUCSPerViewport (UCSSaved);
471
+ }
472
+
473
+ AcGePoint2d PyAcadPViewport::snapBasePoint () const
474
+ {
475
+ return impObj ()->GetSnapBasePoint ();
476
+ }
477
+
478
+ void PyAcadPViewport::setSnapBasePoint (const AcGePoint2d& val)
479
+ {
480
+ impObj ()->SetSnapBasePoint (val);
481
+ }
482
+
483
+ bool PyAcadPViewport::snapOn () const
484
+ {
485
+ return impObj ()->GetSnapOn ();
486
+ }
487
+
488
+ void PyAcadPViewport::setSnapOn (bool UCSSaved)
489
+ {
490
+ impObj ()->SetSnapOn (UCSSaved);
491
+ }
492
+
493
+ double PyAcadPViewport::snapRotationAngle () const
494
+ {
495
+ return impObj ()->GetSnapRotationAngle ();
496
+ }
497
+
498
+ void PyAcadPViewport::setSnapRotationAngle (double val)
499
+ {
500
+ impObj ()->SetSnapRotationAngle (val);
501
+ }
502
+
503
+ bool PyAcadPViewport::ucsIconOn () const
504
+ {
505
+ return impObj ()->GetUCSIconOn ();
506
+ }
507
+
508
+ void PyAcadPViewport::setUCSIconOn (bool bIconOn)
509
+ {
510
+ impObj ()->SetUCSIconOn (bIconOn);
511
+ }
512
+
513
+ bool PyAcadPViewport::ucsIconAtOrigin () const
514
+ {
515
+ return impObj ()->GetUCSIconAtOrigin ();
516
+ }
517
+
518
+ void PyAcadPViewport::setUCSIconAtOrigin (bool bIconAtOrigin)
519
+ {
520
+ impObj ()->SetUCSIconAtOrigin (bIconAtOrigin);
521
+ }
522
+
523
+ boost::python::tuple PyAcadPViewport::gridSpacing ()
524
+ {
525
+ PyAutoLockGIL lock;
526
+ double XSpacing = 1.0 ;
527
+ double YSpacing = 1.0 ;
528
+ impObj ()->GetGridSpacing (XSpacing, YSpacing);
529
+ return boost::python::make_tuple (XSpacing, YSpacing);
530
+ }
531
+
532
+ void PyAcadPViewport::setGridSpacing (double XSpacing, double YSpacing)
533
+ {
534
+ impObj ()->SetGridSpacing (XSpacing, YSpacing);
535
+ }
536
+
537
+ boost::python::tuple PyAcadPViewport::snapSpacing ()
538
+ {
539
+ PyAutoLockGIL lock;
540
+ double XSpacing = 1.0 ;
541
+ double YSpacing = 1.0 ;
542
+ impObj ()->GetSnapSpacing (XSpacing, YSpacing);
543
+ return boost::python::make_tuple (XSpacing, YSpacing);
544
+ }
545
+
546
+ void PyAcadPViewport::setSnapSpacing (double XSpacing, double YSpacing)
547
+ {
548
+ impObj ()->SetSnapSpacing (XSpacing, YSpacing);
549
+ }
550
+
551
+ void PyAcadPViewport::display (bool bStatus)
552
+ {
553
+ impObj ()->Display (bStatus);
554
+ }
555
+
556
+ double PyAcadPViewport::twistAngle () const
557
+ {
558
+ return impObj ()->GetTwistAngle ();
559
+ }
560
+
561
+ void PyAcadPViewport::setTwistAngle (double val)
562
+ {
563
+ impObj ()->SetTwistAngle (val);
564
+ }
565
+
566
+ double PyAcadPViewport::lensLength () const
567
+ {
568
+ return impObj ()->GetLensLength ();
569
+ }
570
+
571
+ void PyAcadPViewport::setLensLength (double val)
572
+ {
573
+ impObj ()->SetLensLength (val);
574
+ }
575
+
576
+ bool PyAcadPViewport::removeHiddenLines () const
577
+ {
578
+ return impObj ()->GetRemoveHiddenLines ();
579
+ }
580
+
581
+ void PyAcadPViewport::setRemoveHiddenLines (bool bRemoval)
582
+ {
583
+ impObj ()->SetRemoveHiddenLines (bRemoval);
584
+ }
585
+
586
+ AcGePoint3d PyAcadPViewport::target () const
587
+ {
588
+ return impObj ()->GetTarget ();
589
+ }
590
+
591
+ void PyAcadPViewport::setTarget (const AcGePoint3d& val)
592
+ {
593
+ impObj ()->SetTarget (val);
594
+ }
595
+
596
+ long PyAcadPViewport::arcSmoothness () const
597
+ {
598
+ return impObj ()->GetArcSmoothness ();
599
+ }
600
+
601
+ void PyAcadPViewport::setArcSmoothness (long val)
602
+ {
603
+ impObj ()->SetArcSmoothness (val);
604
+ }
605
+
606
+ int PyAcadPViewport::visualStyle () const
607
+ {
608
+ return impObj ()->GetVisualStyle ();
609
+ }
610
+
611
+ void PyAcadPViewport::setVisualStyle (int val)
612
+ {
613
+ impObj ()->SetVisualStyle (val);
614
+ }
615
+
616
+ int PyAcadPViewport::shadePlot () const
617
+ {
618
+ return impObj ()->GetShadePlot ();
619
+ }
620
+
621
+ void PyAcadPViewport::setShadePlot (int val)
622
+ {
623
+ impObj ()->SetShadePlot (val);
624
+ }
625
+
626
+ PyAcadView PyAcadPViewport::modelView () const
627
+ {
628
+ return PyAcadView{ impObj ()->GetModelView () };
629
+ }
630
+
631
+ void PyAcadPViewport::setModelView (const PyAcadView& val) const
632
+ {
633
+ impObj ()->SetModelView (*val.impObj ());
634
+ }
635
+
636
+ PyAcadView PyAcadPViewport::sheetView () const
637
+ {
638
+ return PyAcadView{ impObj ()->GetSheetView () };
639
+ }
640
+
641
+ void PyAcadPViewport::setSheetView (const PyAcadView& val) const
642
+ {
643
+ impObj ()->SetSheetView (*val.impObj ());
644
+ }
645
+
646
+ PyDbObjectId PyAcadPViewport::labelBlockId () const
647
+ {
648
+ return PyDbObjectId{ impObj ()->GetLabelBlockId () };
649
+ }
650
+
651
+ void PyAcadPViewport::setLabelBlockId (const PyDbObjectId& id)
652
+ {
653
+ impObj ()->SetLabelBlockId (id.m_id );
654
+ }
655
+
656
+ bool PyAcadPViewport::hasSheetView () const
657
+ {
658
+ return impObj ()->GetHasSheetView ();
659
+ }
660
+
661
+ void PyAcadPViewport::syncModelView ()
662
+ {
663
+ impObj ()->SyncModelView ();
664
+ }
665
+
666
+ int PyAcadPViewport::standardScale2 () const
667
+ {
668
+ return impObj ()->GetStandardScale2 ();
669
+ }
670
+
671
+ void PyAcadPViewport::setStandardScale2 (int val)
672
+ {
673
+ impObj ()->SetStandardScale2 (val);
674
+ }
675
+
676
+ bool PyAcadPViewport::layerPropertyOverrides () const
677
+ {
678
+ return impObj ()->GetLayerPropertyOverrides ();
679
+ }
680
+
295
681
PyAcadPViewport PyAcadPViewport::cast (const PyAcadObject& src)
296
682
{
297
683
return PyAcadObjectCast<PyAcadPViewport>(src);
0 commit comments