dbSectionViewStyle.h 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904
  1. //
  2. //////////////////////////////////////////////////////////////////////////////
  3. //
  4. // Copyright 2015 Autodesk, Inc. All rights reserved.
  5. //
  6. // Use of this software is subject to the terms of the Autodesk license
  7. // agreement provided at the time of installation or download, or which
  8. // otherwise accompanies this software in either electronic or hard copy form.
  9. //
  10. //////////////////////////////////////////////////////////////////////////////
  11. //
  12. #ifndef __ACDBSECTIONVIEWSTYLE_H__
  13. #define __ACDBSECTIONVIEWSTYLE_H__
  14. #pragma once
  15. #include "dbModelDocViewStyle.h"
  16. #pragma pack (push, 8)
  17. class ACDB_PORT AcDbSectionViewStyle : public AcDbModelDocViewStyle
  18. {
  19. public:
  20. /// <summary>
  21. /// Enumeration defining identifier position type
  22. /// </summary>
  23. enum IdentifierPosition {
  24. kEndCuttingPlane = 0,
  25. kAboveDirectionArrowLine = 1,
  26. kAboveDirectionArrowSymbol = 2,
  27. kStartDirectionArrow = 3,
  28. kEndDirectionArrow = 4,
  29. };
  30. /// <summary>
  31. /// Enumeration defining identifier position type
  32. /// </summary>
  33. enum ArrowDirection {
  34. kTowardsCuttingPlane = 0,
  35. kAwayFromCuttingPlane = 1,
  36. };
  37. AcDbSectionViewStyle();
  38. ~AcDbSectionViewStyle();
  39. ACDB_DECLARE_MEMBERS(AcDbSectionViewStyle);
  40. /// <summary>
  41. /// Returns the text style objectId of the identifier.
  42. /// </summary>
  43. ///
  44. /// <returns>
  45. /// Returns the text style objectId of the identifier.
  46. /// </returns>
  47. AcDbObjectId identifierStyleId () const;
  48. /// <summary>
  49. /// Sets the identifier to use specified text style.
  50. /// </summary>
  51. ///
  52. /// <param name="objId">
  53. /// ObjectId of text style to use for the identifier.
  54. /// </param>
  55. ///
  56. /// <returns>
  57. /// Return Acad::eOk if Successful
  58. /// </returns>
  59. Acad::ErrorStatus setIdentifierStyleId (const AcDbObjectId &objId);
  60. /// <summary>
  61. /// Returns the color of the identifier.
  62. /// </summary>
  63. ///
  64. /// <returns>
  65. /// Returns the color of the identifier.
  66. /// </returns>
  67. AcCmColor identifierColor () const;
  68. /// <summary>
  69. /// Sets the identifier to use specified color.
  70. /// </summary>
  71. ///
  72. /// <param name="color">
  73. /// Color to use for the identifier.
  74. /// </param>
  75. ///
  76. /// <returns>
  77. /// Return Acad::eOk if Successful
  78. /// </returns>
  79. Acad::ErrorStatus setIdentifierColor (const AcCmColor& color);
  80. /// <summary>
  81. /// Returns the height of the identifier.
  82. /// </summary>
  83. ///
  84. /// <returns>
  85. /// Returns the height of the identifier.
  86. /// </returns>
  87. double identifierHeight () const;
  88. /// <summary>
  89. /// Sets the text height the identifier.
  90. /// </summary>
  91. ///
  92. /// <param name="height">
  93. /// Text height to use for the identifier.
  94. /// </param>
  95. ///
  96. /// <returns>
  97. /// Return Acad::eOk if Successful
  98. /// </returns>
  99. Acad::ErrorStatus setIdentifierHeight (double height);
  100. /// <summary>
  101. /// Returns the identifier exclude characters.
  102. /// </summary>
  103. ///
  104. /// <returns>
  105. /// Returns the identifier exclude characters.
  106. /// </returns>
  107. const ACHAR * identifierExcludeCharacters () const;
  108. /// <summary>
  109. /// Sets the identifer exclude characters.
  110. /// </summary>
  111. ///
  112. /// <param name="str">
  113. /// Exclude characters separated by comma.
  114. /// </param>
  115. ///
  116. /// <returns>
  117. /// Return Acad::eOk if successful or Acad::eInvalidInput
  118. /// if the format is incorrect or there are invalid characters.
  119. /// </returns>
  120. Acad::ErrorStatus setIdentifierExcludeCharacters (const ACHAR* str);
  121. /// <summary>
  122. /// Returns the objectId of arrow start symbol.
  123. /// </summary>
  124. ///
  125. /// <returns>
  126. /// Returns the objectId of arrow start symbol.
  127. /// </returns>
  128. AcDbObjectId arrowStartSymbolId () const;
  129. /// <summary>
  130. /// Sets the arrow start symbol to use specified block table record.
  131. /// </summary>
  132. ///
  133. /// <param name="objId">
  134. /// ObjectId of block table record to use for arrow start symbol
  135. /// </param>
  136. ///
  137. /// <returns>
  138. /// Return Acad::eOk if Successful
  139. /// </returns>
  140. Acad::ErrorStatus setArrowStartSymbolId (const AcDbObjectId &arrowSymbolId);
  141. /// <summary>
  142. /// Returns the objectId of arrow end symbol.
  143. /// </summary>
  144. ///
  145. /// <returns>
  146. /// Returns the objectId of arrow end symbol.
  147. /// </returns>
  148. AcDbObjectId arrowEndSymbolId () const;
  149. /// <summary>
  150. /// Sets the arrow end symbol to use specified block table record.
  151. /// </summary>
  152. ///
  153. /// <param name="objId">
  154. /// ObjectId of block table record to use for arrow end symbol
  155. /// </param>
  156. ///
  157. /// <returns>
  158. /// Return Acad::eOk if Successful
  159. /// </returns>
  160. Acad::ErrorStatus setArrowEndSymbolId (const AcDbObjectId &arrowSymbolId);
  161. /// <summary>
  162. /// Returns the color of arrow symbol.
  163. /// </summary>
  164. ///
  165. /// <returns>
  166. /// Returns the color of arrow symbol.
  167. /// </returns>
  168. AcCmColor arrowSymbolColor () const;
  169. /// <summary>
  170. /// Sets the arrow symbol to use specified color.
  171. /// </summary>
  172. ///
  173. /// <param name="color">
  174. /// Color to use for arrow symbol
  175. /// </param>
  176. ///
  177. /// <returns>
  178. /// Return Acad::eOk if Successful
  179. /// </returns>
  180. Acad::ErrorStatus setArrowSymbolColor (const AcCmColor& color);
  181. /// <summary>
  182. /// Returns the size of arrow symbol.
  183. /// </summary>
  184. ///
  185. /// <returns>
  186. /// Returns the size of arrow symbol.
  187. /// </returns>
  188. double arrowSymbolSize () const;
  189. /// <summary>
  190. /// Sets the size of arrow symbol.
  191. /// </summary>
  192. ///
  193. /// <param name="size">
  194. /// Size of arrow symbol
  195. /// </param>
  196. ///
  197. /// <returns>
  198. /// Return Acad::eOk if Successful
  199. /// </returns>
  200. Acad::ErrorStatus setArrowSymbolSize (double size);
  201. /// <summary>
  202. /// Returns the extension length of arrow symbol.
  203. /// </summary>
  204. ///
  205. /// <returns>
  206. /// Returns the extension length of arrow symbol.
  207. /// </returns>
  208. double arrowSymbolExtensionLength () const;
  209. /// <summary>
  210. /// Sets the extension length of arrow symbol.
  211. /// </summary>
  212. ///
  213. /// <param name="length">
  214. /// Extension length of arrow symbol
  215. /// </param>
  216. ///
  217. /// <returns>
  218. /// Return Acad::eOk if Successful
  219. /// </returns>
  220. Acad::ErrorStatus setArrowSymbolExtensionLength (double length);
  221. /// <summary>
  222. /// Returns the line weight of plane line.
  223. /// </summary>
  224. ///
  225. /// <returns>
  226. /// Returns the line weight of plane line.
  227. /// </returns>
  228. AcDb::LineWeight planeLineWeight () const;
  229. /// <summary>
  230. /// Sets the plane line to use specified line weight.
  231. /// </summary>
  232. ///
  233. /// <param name="color">
  234. /// Line weight to use.for plane.line
  235. /// </param>
  236. ///
  237. /// <returns>
  238. /// Return Acad::eOk if Successful
  239. /// </returns>
  240. Acad::ErrorStatus setPlaneLineWeight (AcDb::LineWeight lineweight);
  241. /// <summary>
  242. /// Returns the color of plane line.
  243. /// </summary>
  244. ///
  245. /// <returns>
  246. /// Returns the color of plane line.
  247. /// </returns>
  248. AcCmColor planeLineColor () const;
  249. /// <summary>
  250. /// Sets the plane line to use specified color.
  251. /// </summary>
  252. ///
  253. /// <param name="color">
  254. /// Color to use for plane.line
  255. /// </param>
  256. ///
  257. /// <returns>
  258. /// Return Acad::eOk if Successful
  259. /// </returns>
  260. Acad::ErrorStatus setPlaneLineColor (const AcCmColor& color);
  261. /// <summary>
  262. /// Returns the linetype objectId of plane line.
  263. /// </summary>
  264. ///
  265. /// <returns>
  266. /// Returns the linetype objectId of plane line.
  267. /// </returns>
  268. AcDbObjectId planeLineTypeId () const;
  269. /// <summary>
  270. /// Sets the plane line to use specified linetype.
  271. /// </summary>
  272. ///
  273. /// <param name="objId">
  274. /// ObjectId of the linetype to use.for plane.line
  275. /// </param>
  276. ///
  277. /// <returns>
  278. /// Return Acad::eOk if Successful
  279. /// </returns>
  280. Acad::ErrorStatus setPlaneLineTypeId (const AcDbObjectId &objId);
  281. /// <summary>
  282. /// Returns the color of bend line.
  283. /// </summary>
  284. ///
  285. /// <returns>
  286. /// Returns the color of bend line.
  287. /// </returns>
  288. AcCmColor bendLineColor () const;
  289. /// <summary>
  290. /// Sets the bend line to use specified color.
  291. /// </summary>
  292. ///
  293. /// <param name="color">
  294. /// Color to use for bend.line
  295. /// </param>
  296. ///
  297. /// <returns>
  298. /// Return Acad::eOk if Successful
  299. /// </returns>
  300. Acad::ErrorStatus setBendLineColor (const AcCmColor& color);
  301. /// <summary>
  302. /// Returns the line weight of bend line.
  303. /// </summary>
  304. ///
  305. /// <returns>
  306. /// Returns the line weight of bend line.
  307. /// </returns>
  308. AcDb::LineWeight bendLineWeight () const;
  309. /// <summary>
  310. /// Sets the bend line to use specified line weight.
  311. /// </summary>
  312. ///
  313. /// <param name="color">
  314. /// Line weight to use.for bend.line
  315. /// </param>
  316. ///
  317. /// <returns>
  318. /// Return Acad::eOk if Successful
  319. /// </returns>
  320. Acad::ErrorStatus setBendLineWeight (AcDb::LineWeight lineweight);
  321. /// <summary>
  322. /// Returns the linetype objectId of bend line.
  323. /// </summary>
  324. ///
  325. /// <returns>
  326. /// Returns the linetype objectId of bend line.
  327. /// </returns>
  328. AcDbObjectId bendLineTypeId () const;
  329. /// <summary>
  330. /// Sets the bend line to use specified linetype.
  331. /// </summary>
  332. ///
  333. /// <param name="objId">
  334. /// ObjectId of the linetype to use.for bend.line
  335. /// </param>
  336. ///
  337. /// <returns>
  338. /// Return Acad::eOk if Successful
  339. /// </returns>
  340. Acad::ErrorStatus setBendLineTypeId (const AcDbObjectId &objId);
  341. /// <summary>
  342. /// Returns the length of bend line.
  343. /// </summary>
  344. ///
  345. /// <returns>
  346. /// Returns the length of bend line.
  347. /// </returns>
  348. double bendLineLength () const;
  349. /// <summary>
  350. /// Sets the length of bend line.
  351. /// </summary>
  352. ///
  353. /// <param name="length">
  354. /// length of bend line.
  355. /// </param>
  356. ///
  357. /// <returns>
  358. /// Return Acad::eOk if Successful
  359. /// </returns>
  360. Acad::ErrorStatus setBendLineLength (double length);
  361. /// <summary>
  362. /// Returns the length of end line.
  363. /// </summary>
  364. ///
  365. /// <returns>
  366. /// Returns the length of end line.
  367. /// </returns>
  368. double endLineLength () const;
  369. /// <summary>
  370. /// Sets the length of end line.
  371. /// </summary>
  372. ///
  373. /// <param name="length">
  374. /// length of end line.
  375. /// </param>
  376. ///
  377. /// <returns>
  378. /// Return Acad::eOk if Successful
  379. /// </returns>
  380. Acad::ErrorStatus setEndLineLength (double length);
  381. /// <summary>
  382. /// Returns the text style objectId of view label.
  383. /// </summary>
  384. ///
  385. /// <returns>
  386. /// Returns the text style objectId of view label.
  387. /// </returns>
  388. AcDbObjectId viewLabelTextStyleId () const;
  389. /// <summary>
  390. /// Sets the text style of the view label text.
  391. /// </summary>
  392. ///
  393. /// <param name="objId">
  394. /// length of end and bend line.
  395. /// </param>
  396. ///
  397. /// <returns>
  398. /// Return Acad::eOk if Successful
  399. /// </returns>
  400. Acad::ErrorStatus setViewLabelTextStyleId (const AcDbObjectId &objId);
  401. /// <summary>
  402. /// Returns the color of view label.
  403. /// </summary>
  404. ///
  405. /// <returns>
  406. /// Returns the color of view label.
  407. /// </returns>
  408. AcCmColor viewLabelTextColor () const;
  409. /// <summary>
  410. /// Sets the view label to use specified color.
  411. /// </summary>
  412. ///
  413. /// <param name="color">
  414. /// Color to use for view label
  415. /// </param>
  416. ///
  417. /// <returns>
  418. /// Return Acad::eOk if Successful
  419. /// </returns>
  420. Acad::ErrorStatus setViewLabelTextColor (const AcCmColor& color);
  421. /// <summary>
  422. /// Returns the text height of view label.
  423. /// </summary>
  424. ///
  425. /// <returns>
  426. /// Returns the text height of view label.
  427. /// </returns>
  428. double viewLabelTextHeight () const;
  429. Acad::ErrorStatus setViewLabelTextHeight (double height);
  430. /// <summary>
  431. /// Returns the offset of view label.
  432. /// </summary>
  433. ///
  434. /// <returns>
  435. /// Returns the offset of view label.
  436. /// </returns>
  437. double viewLabelOffset () const;
  438. /// <summary>
  439. /// Sets the offset for view label.
  440. /// </summary>
  441. ///
  442. /// <param name="offset">
  443. /// offset for view label
  444. /// </param>
  445. ///
  446. /// <returns>
  447. /// Return Acad::eOk if Successful
  448. /// </returns>
  449. Acad::ErrorStatus setViewLabelOffset (double offset);
  450. /// <summary>
  451. /// Returns the attachment of view label.
  452. /// </summary>
  453. ///
  454. /// <returns>
  455. /// Returns the attachment of view label.
  456. /// </returns>
  457. AcDbModelDocViewStyle::AttachmentPoint viewLabelAttachment () const;
  458. /// <summary>
  459. /// Sets the attachment for view label.
  460. /// </summary>
  461. ///
  462. /// <param name="attachment">
  463. /// attachment of view label
  464. /// </param>
  465. ///
  466. /// <returns>
  467. /// Return Acad::eOk if Successful
  468. /// </returns>
  469. Acad::ErrorStatus setViewLabelAttachment (AcDbModelDocViewStyle::AttachmentPoint attachment);
  470. /// <summary>
  471. /// Returns the text alignment of view label.
  472. /// </summary>
  473. ///
  474. /// <returns>
  475. /// Returns the text alignment of view label.
  476. /// </returns>
  477. AcDbModelDocViewStyle::TextAlignment viewLabelAlignment () const;
  478. /// <summary>
  479. /// Sets the text alignment for view label.
  480. /// </summary>
  481. ///
  482. /// <param name="attachment">
  483. /// text alignment for view label
  484. /// </param>
  485. ///
  486. /// <returns>
  487. /// Return Acad::eOk if Successful
  488. /// </returns>
  489. Acad::ErrorStatus setViewLabelAlignment (AcDbModelDocViewStyle::TextAlignment alignment);
  490. /// <summary>
  491. /// Returns the pattern of view label.
  492. /// </summary>
  493. ///
  494. /// <returns>
  495. /// Returns the pattern of view label.
  496. /// </returns>
  497. const ACHAR * viewLabelPattern () const;
  498. /// <summary>
  499. /// Gets the pattern for view label. If 'pField' parameter is specified and label
  500. /// pattern is currently using fields, the master field will be copied to 'pField'
  501. /// including child fields.
  502. /// </summary>
  503. ///
  504. /// <param name="pattern">
  505. /// pattern for view label
  506. /// </param>
  507. /// <param name="pField">
  508. /// If this optional parameter is specified and the pattern label is currently
  509. /// using fields, the master field will be copied to 'pField'. Child fields
  510. /// are also copied.
  511. /// </param>
  512. ///
  513. /// <returns>
  514. /// Return Acad::eOk if Successful
  515. /// </returns>
  516. Acad::ErrorStatus getViewLabelPattern (AcString &pattern,
  517. AcDbField *pField = NULL) const;
  518. /// <summary>
  519. /// Sets the pattern for view label. If 'pField' parameter is specified and
  520. /// contains child fields, then label pattern will be acquired from the field.
  521. /// Otherwise 'pattern' is used.
  522. /// </summary>
  523. ///
  524. /// <param name="pattern"> pattern for view label
  525. /// </param>
  526. /// <param name="pField">
  527. /// If 'pField' parameter is specified and contains child fields, then label
  528. /// pattern will be acquired from the field, rather than from 'pattern'.
  529. /// The field including child fields are also copied to view style's field.
  530. /// </param>
  531. ///
  532. /// <returns>
  533. /// Return Acad::eOk if Successful
  534. /// </returns>
  535. Acad::ErrorStatus setViewLabelPattern (const ACHAR* pattern,
  536. const AcDbField *pField = NULL);
  537. /// <summary>
  538. /// Returns the hatch pattern.
  539. /// </summary>
  540. ///
  541. /// <returns>
  542. /// Returns the hatch pattern.
  543. /// </returns>
  544. const ACHAR * hatchPattern () const;
  545. /// <summary>
  546. /// Sets the hatch pattern.
  547. /// </summary>
  548. ///
  549. /// <param name="pattern">
  550. /// hatch pattern
  551. /// </param>
  552. ///
  553. /// <returns>
  554. /// Return Acad::eOk if Successful
  555. /// </returns>
  556. Acad::ErrorStatus setHatchPattern (const ACHAR* pattern);
  557. /// <summary>
  558. /// Returns the color of hatch.
  559. /// </summary>
  560. ///
  561. /// <returns>
  562. /// Returns the color of hatch.
  563. /// </returns>
  564. AcCmColor hatchColor () const;
  565. /// <summary>
  566. /// Sets the hatch to use specified color.
  567. /// </summary>
  568. ///
  569. /// <param name="color">
  570. /// Color to use for hatch
  571. /// </param>
  572. ///
  573. /// <returns>
  574. /// Return Acad::eOk if Successful
  575. /// </returns>
  576. Acad::ErrorStatus setHatchColor (const AcCmColor& color);
  577. /// <summary>
  578. /// Returns the background color of hatch.
  579. /// </summary>
  580. ///
  581. /// <returns>
  582. /// Returns the background color of hatch.
  583. /// </returns>
  584. AcCmColor hatchBackgroundColor () const;
  585. /// <summary>
  586. /// Sets the hatch to use specified background color.
  587. /// </summary>
  588. ///
  589. /// <param name="color">
  590. /// Background color to use.for hatch
  591. /// </param>
  592. ///
  593. /// <returns>
  594. /// Return Acad::eOk if Successful
  595. /// </returns>
  596. Acad::ErrorStatus setHatchBackgroundColor (const AcCmColor& color);
  597. /// <summary>
  598. /// Returns the scale of hatch.
  599. /// </summary>
  600. ///
  601. /// <returns>
  602. /// Returns the scale of hatch.
  603. /// </returns>
  604. double hatchScale () const;
  605. /// <summary>
  606. /// Sets the hatch scale.
  607. /// </summary>
  608. ///
  609. /// <param name="scale">
  610. /// hatch scale
  611. /// </param>
  612. ///
  613. /// <returns>
  614. /// Return Acad::eOk if Successful
  615. /// </returns>
  616. Acad::ErrorStatus setHatchScale (double scale);
  617. /// <summary>
  618. /// Returns the array of applicable hatch angles.
  619. /// </summary>
  620. ///
  621. /// <returns>
  622. /// Returns the array of hatch angle.
  623. /// </returns>
  624. const AcArray<double>& hatchAngles () const;
  625. /// <summary>
  626. /// Sets the hatch angle array.
  627. /// </summary>
  628. ///
  629. /// <param name="angleArray">
  630. /// hatch angle array
  631. /// </param>
  632. ///
  633. /// <returns>
  634. /// Return Acad::eOk if Successful
  635. /// </returns>
  636. Acad::ErrorStatus setHatchAngles (const AcArray<double>& angleArray);
  637. /// <summary>
  638. /// Sets the hatch to use specified transparency.
  639. /// </summary>
  640. ///
  641. /// <param name="transparency">
  642. /// Transparency to use for hatch
  643. /// </param>
  644. ///
  645. /// <returns>
  646. /// Return Acad::eOk if Successful
  647. /// </returns>
  648. Acad::ErrorStatus setHatchTransparency (const AcCmTransparency& transparency);
  649. /// <summary>
  650. /// Returns the transparency of hatch.
  651. /// </summary>
  652. ///
  653. /// <returns>
  654. /// Returns the transparency of hatch.
  655. /// </returns>
  656. AcCmTransparency hatchTransparency () const;
  657. /// <summary>
  658. /// Returns boolean value indicating if continuous labeling
  659. /// is in use.
  660. /// </summary>
  661. ///
  662. /// <returns>
  663. /// true if continuous labeling is in use, false otherwise.
  664. /// </returns>
  665. bool isContinuousLabeling () const;
  666. Acad::ErrorStatus setContinuousLabeling (bool bValue);
  667. /// <summary>
  668. /// Returns boolean value indicating if to show arrowheads.
  669. /// </summary>
  670. ///
  671. /// <returns>
  672. /// true if to show arrowheads is on, false otherwise.
  673. /// </returns>
  674. bool showArrowheads () const;
  675. Acad::ErrorStatus setShowArrowheads (bool bValue);
  676. /// <summary>
  677. /// Returns boolean value indicating if to show view label.
  678. /// </summary>
  679. ///
  680. /// <returns>
  681. /// true if to show view label is on, false otherwise.
  682. /// </returns>
  683. bool showViewLabel () const;
  684. Acad::ErrorStatus setShowViewLabel (bool bValue);
  685. /// <summary>
  686. /// Returns boolean value indicating if to show all plane lines.
  687. /// </summary>
  688. ///
  689. /// <returns>
  690. /// true if to show all plane lines is on, false otherwise.
  691. /// </returns>
  692. bool showAllPlaneLines () const;
  693. Acad::ErrorStatus setShowAllPlaneLines (bool bValue);
  694. /// <summary>
  695. /// Returns boolean value indicating if to show identifiers
  696. // at all bends.
  697. /// </summary>
  698. ///
  699. /// <returns>
  700. /// true if to show identifiers at all bends, false otherwise.
  701. /// </returns>
  702. bool showAllBendIndentifiers () const;
  703. Acad::ErrorStatus setShowAllBendIndentifiers (bool bValue);
  704. /// <summary>
  705. /// Returns boolean value indicating if to show end and bend lines.
  706. /// </summary>
  707. ///
  708. /// <returns>
  709. /// true if to show end and bend lines, false otherwise.
  710. /// </returns>
  711. bool showEndAndBendLines () const;
  712. Acad::ErrorStatus setShowEndAndBendLines (bool bValue);
  713. /// <summary>
  714. /// Returns boolean value indicating if to show hatching.
  715. /// </summary>
  716. ///
  717. /// <returns>
  718. /// true if to show hatching, false otherwise.
  719. /// </returns>
  720. bool showHatching () const;
  721. Acad::ErrorStatus setShowHatching (bool bValue);
  722. /// <summary>
  723. /// Checks whether identifier exclude character string is in correct format
  724. /// and contains valid characters.
  725. /// </summary>
  726. ///
  727. /// <param name="str">
  728. /// Identifier exclude character string. Currently the identifer exclude character
  729. /// string should contain capital letters from English alphabet separated
  730. /// by comma.
  731. /// </param>
  732. ///
  733. /// <returns>
  734. /// Return true identifier exclude character string is in correct format
  735. /// and contains valid characters
  736. /// </returns>
  737. static bool validateIdentifierExcludeCharacters (const ACHAR* str);
  738. /// <summary>
  739. /// </summary>
  740. ///
  741. /// <returns>
  742. /// </returns>
  743. AcDbSectionViewStyle::IdentifierPosition viewIdentifierPosition () const;
  744. /// <summary>
  745. /// </summary>
  746. ///
  747. /// <param name="type">
  748. /// </param>
  749. ///
  750. /// <returns>
  751. /// Return Acad::eOk if Successful
  752. /// </returns>
  753. Acad::ErrorStatus setViewIdentifierPosition (AcDbSectionViewStyle::IdentifierPosition type);
  754. /// <summary>
  755. /// </summary>
  756. ///
  757. /// <returns>
  758. /// </returns>
  759. double viewIdentifierOffset () const;
  760. /// <summary>
  761. /// </summary>
  762. ///
  763. /// <param name="type">
  764. /// </param>
  765. ///
  766. /// <returns>
  767. /// </returns>
  768. Acad::ErrorStatus setViewIdentifierOffset (double offset);
  769. /// <summary>
  770. /// </summary>
  771. ///
  772. /// <returns>
  773. /// </returns>
  774. AcDbSectionViewStyle::ArrowDirection arrowPosition () const;
  775. /// <summary>
  776. /// </summary>
  777. ///
  778. /// <param name="type">
  779. /// </param>
  780. ///
  781. /// <returns>
  782. /// Return Acad::eOk if Successful
  783. /// </returns>
  784. Acad::ErrorStatus setArrowPosition (AcDbSectionViewStyle::ArrowDirection type);
  785. /// <summary>
  786. /// Returns the Overshoot of end line.
  787. /// </summary>
  788. ///
  789. /// <returns>
  790. /// Returns the Overshoot of end line.
  791. /// </returns>
  792. double endLineOvershoot () const;
  793. /// <summary>
  794. /// Sets the Overshoot of End line.
  795. /// </summary>
  796. ///
  797. /// <param name="length">
  798. /// Overshoot of End line.
  799. /// </param>
  800. ///
  801. /// <returns>
  802. /// Return Acad::eOk if Successful
  803. /// </returns>
  804. Acad::ErrorStatus setEndLineOvershoot (double length);
  805. protected:
  806. // For internal use only
  807. virtual Acad::ErrorStatus subDeepClone(AcDbObject* pOwner, AcDbObject*& pClonedObject,
  808. AcDbIdMapping& idMap, Adesk::Boolean isPrimary = true) const;
  809. virtual Acad::ErrorStatus subWblockClone(AcRxObject* pOwner, AcDbObject*& pClonedObject,
  810. AcDbIdMapping& idMap, Adesk::Boolean isPrimary = true) const;
  811. };
  812. #pragma pack (pop)
  813. #endif // __ACDBSECTIONVIEWSTYLE_H__