|
Rhino C++ API
9.0
|
CRhinoPageViewGroupTable contains document page view group objects. More...
#include <rhinoSdkPageViewGroup.h>
Public Member Functions | |
| const ON_ComponentManifestItem & | AddPageViewGroup () |
| Adds a new page view group to the table. More... | |
| const ON_ComponentManifestItem & | AddPageViewGroup (const ON_PageViewGroup &group) |
| Adds a new page view group to the table. More... | |
| const ON_ComponentManifestItem & | AddPageViewGroup (const ON_PageViewGroup &group, const ON_SimpleArray< CRhinoPageView * > &group_members) |
| Adds a new page view group to the table, and adds page views to the group. More... | |
| const ON_ComponentManifestItem & | AddPageViewGroup (const ON_SimpleArray< CRhinoPageView * > &group_members) |
| Adds a new page view group to the table, and adds page views to the group. More... | |
| void | ChangeSortOrder (const ON_SimpleArray< ON_2dex > &sort_order) |
| const ON_ComponentManifestItem & | CreatePageViewGroup (const ON_PageViewGroup &group, const ON_SimpleArray< CRhinoPageView * > &group_members, unsigned int worksession_ref_model_sn, unsigned int linked_idef_sn) |
| Basic tool used to add a new new page view group, with specified definition, to the table. The AddPageViewGroup() functions use this when adding new age view groups. More... | |
| const ON_ComponentManifestItem & | CreatePageViewGroup (const ON_PageViewGroup &group, unsigned int worksession_ref_model_sn, unsigned int linked_idef_sn) |
| Basic tool used to add a new new page view group, with specified definition, to the table. The AddPageViewGroup() functions use this when adding new age view groups. More... | |
| bool | DeletePageViewGroup (const ON_ComponentManifestItem &item, bool bRemovePageViews, bool bQuiet) |
| Deletes a page view group. More... | |
| bool | DeletePageViewGroup (int group_index, bool bQuiet) |
| Deletes a page view group. More... | |
| bool | DeletePageViewGroup (int group_index, bool bRemovePageViews, bool bQuiet) |
| Deletes a page view group. More... | |
| CRhinoDoc & | Document () const |
| void | GetSortedList (ON_SimpleArray< const CRhinoPageViewGroup * > &sorted_list, bool bIgnoreDeleted, bool bIgnoreReference) const |
| Gets an array of page view group pointers that are sorted by CRhinoPageViewGroup::Name(). More... | |
| void | GetUnusedPageViewGroupName (const wchar_t *root_name, ON_wString &unused_group_name) |
| Gets an unused page view group name. More... | |
| void | GetUnusedPageViewGroupName (ON_wString &unused_group_name) |
| Gets an unused page view group name. More... | |
| bool | InPageViewGroupTable (const ON_PageViewGroup *group) const |
| Verifies a page view group exists in this table. More... | |
| bool | IsValidPageViewGroupTableIndex (int group_index) const |
| Verifies a page view group index is a valid index in this table. More... | |
| void | ListTable (ON_TextLog &text_log, unsigned int level_of_detail) const |
| Table logging helper. More... | |
| bool | ModifyPageViewGroup (const ON_PageViewGroup &group, const ON_ComponentManifestItem &item, bool bQuiet) |
| Modifies a page view group. More... | |
| bool | ModifyPageViewGroup (const ON_PageViewGroup &group, int group_index, bool bQuiet=false) |
| Modifies a page view group. More... | |
| const CRhinoPageViewGroup * | operator[] (int group_index) const |
| Gets a page view group from the table. More... | |
| const CRhinoPageViewGroup * | PageViewGroup (const ON_ComponentManifestItem &manifest_item) const |
| Gets a page view group by component manifest. More... | |
| const CRhinoPageViewGroup * | PageViewGroup (const ON_ComponentManifestItem &manifest_item, const CRhinoPageViewGroup *not_found) const |
| Gets a page view group by component manifest. More... | |
| int | PageViewGroupCount () const |
| const CRhinoPageViewGroup * | PageViewGroupFromId (ON_UUID group_id, bool bSearchDeleted) const |
| Gets a page view group by id. More... | |
| const CRhinoPageViewGroup * | PageViewGroupFromIndex (int group_index, bool bSearchDeleted) const |
| Gets a page view group by index. More... | |
| const CRhinoPageViewGroup * | PageViewGroupFromName (const wchar_t *group_name) const |
| Gets a page view group by name. More... | |
| const ON_ComponentManifestItem & | PageViewGroupManifestItemFromId (ON_UUID group_id, bool bSearchDeleted) const |
| Gets a component manifest item by page view group id. More... | |
| const ON_ComponentManifestItem & | PageViewGroupManifestItemFromIndex (int group_index, bool bSearchDeleted) const |
| Gets a component manifest item by page view group index. More... | |
| const ON_ComponentManifestItem & | PageViewGroupManifestItemFromName (const wchar_t *group_name) const |
| Gets a component manifest item by page view group name. More... | |
| void | SetRemapIndex (int group_index, int remap_index) |
| Sets a page view group's remap index. More... | |
| void | SetUnusedPageViewGroupName (const wchar_t *root_name, ON_PageViewGroup &group_to_name) |
| Sets a page view group's name to an unused name. More... | |
| void | SetUnusedPageViewGroupName (ON_PageViewGroup &group_to_name) |
| Sets a page view group's name to an unused name. More... | |
| void | Sort (int(*compare)(const CRhinoPageViewGroup *, const CRhinoPageViewGroup *, void *), int(*cull)(const CRhinoPageViewGroup *, void *), void *ptr=nullptr) |
| Use this to set CRhinoPageViewGroup::m_sort_index so that the values of CRhinoPageViewGroup::m_sort_index are from 0 to PageViewGroupCount() - 1, and compare(table[i], table[j]) < 0 ) implies that table[i].m_sort_index < table[j].m_sort_index. More... | |
| const class CRhinoDocTableReference & | TableReference () const |
| bool | UndeletePageViewGroup (int group_index) |
| Undeletes a page view group that has been deleted by DeletePageViewGroup(). More... | |
| bool | UndoModifyPageViewGroup (int group_index, unsigned int undo_record_sn) |
| If the page view group has been modified and the modification can be undone, then UndoModifyPageViewGroup() will restore the page view group to its previous state. More... | |
| bool | UnsortPageViewGroup (int pageview_group_index, int sort_index) |
Friends | |
| class | CRhDocSdkExtension |
| class | CRhinoDoc |
CRhinoPageViewGroupTable contains document page view group objects.
| const ON_ComponentManifestItem& CRhinoPageViewGroupTable::AddPageViewGroup | ( | ) |
Adds a new page view group to the table.
| const ON_ComponentManifestItem& CRhinoPageViewGroupTable::AddPageViewGroup | ( | const ON_PageViewGroup & | group | ) |
Adds a new page view group to the table.
| group | Page view group to add. |
| const ON_ComponentManifestItem& CRhinoPageViewGroupTable::AddPageViewGroup | ( | const ON_PageViewGroup & | group, |
| const ON_SimpleArray< CRhinoPageView * > & | group_members | ||
| ) |
Adds a new page view group to the table, and adds page views to the group.
| group | Page view group to add. |
| group_members | Rhino page views to group. |
| const ON_ComponentManifestItem& CRhinoPageViewGroupTable::AddPageViewGroup | ( | const ON_SimpleArray< CRhinoPageView * > & | group_members | ) |
Adds a new page view group to the table, and adds page views to the group.
| group_members | Rhino page views to group. |
| void CRhinoPageViewGroupTable::ChangeSortOrder | ( | const ON_SimpleArray< ON_2dex > & | sort_order | ) |
| const ON_ComponentManifestItem& CRhinoPageViewGroupTable::CreatePageViewGroup | ( | const ON_PageViewGroup & | group, |
| const ON_SimpleArray< CRhinoPageView * > & | group_members, | ||
| unsigned int | worksession_ref_model_sn, | ||
| unsigned int | linked_idef_sn | ||
| ) |
Basic tool used to add a new new page view group, with specified definition, to the table. The AddPageViewGroup() functions use this when adding new age view groups.
| group | Page view group to add. |
| group_members | Rhino page views to group. |
| worksession_ref_model_sn | The worksession reference model serial number: 0 : Not from a reference model. 1 : Not saved in files but not part of a worksession reference file. 2 - 1000 : Reserved for future use.
|
| linked_idef_sn | Linked instance definition serial number: 0 : Not from a linked instance definition. 1 - 1000 : Reserved for future use.
|
| const ON_ComponentManifestItem& CRhinoPageViewGroupTable::CreatePageViewGroup | ( | const ON_PageViewGroup & | group, |
| unsigned int | worksession_ref_model_sn, | ||
| unsigned int | linked_idef_sn | ||
| ) |
Basic tool used to add a new new page view group, with specified definition, to the table. The AddPageViewGroup() functions use this when adding new age view groups.
| group | Page view group to add. |
| worksession_ref_model_sn | The worksession reference model serial number: 0 : Not from a reference model. 1 : Not saved in files but not part of a worksession reference file. 2 - 1000 : Reserved for future use.
|
| linked_idef_sn | Linked instance definition serial number: 0 : Not from a linked instance definition. 1 - 1000 : Reserved for future use.
|
| bool CRhinoPageViewGroupTable::DeletePageViewGroup | ( | const ON_ComponentManifestItem & | item, |
| bool | bRemovePageViews, | ||
| bool | bQuiet | ||
| ) |
Deletes a page view group.
| item | Component index item of page view group to delete. |
| bRemovePageViews | Iterates the document and removes page views from the group. |
| bQuiet | true to disable any warning or error messages. |
| bool CRhinoPageViewGroupTable::DeletePageViewGroup | ( | int | group_index, |
| bool | bQuiet | ||
| ) |
Deletes a page view group.
| group_index | Zero-based index of page view group to delete. |
| bQuiet | true to disable any warning or error messages. |
| bool CRhinoPageViewGroupTable::DeletePageViewGroup | ( | int | group_index, |
| bool | bRemovePageViews, | ||
| bool | bQuiet | ||
| ) |
Deletes a page view group.
| group_index | Zero-based index of page view group to delete. |
| bRemovePageViews | Iterates the document and removes page views from the group. |
| bQuiet | true to disable any warning or error messages. |
| CRhinoDoc& CRhinoPageViewGroupTable::Document | ( | ) | const |
| void CRhinoPageViewGroupTable::GetSortedList | ( | ON_SimpleArray< const CRhinoPageViewGroup * > & | sorted_list, |
| bool | bIgnoreDeleted, | ||
| bool | bIgnoreReference | ||
| ) | const |
Gets an array of page view group pointers that are sorted by CRhinoPageViewGroup::Name().
| sorted_list | Array of sorted page view group pointers. |
| bIgnoreDeleted | true to ignore deleted page view groups. |
| bIgnoreReference | true to ignore reference page view groups. |
Use Sort() to set the values of CRhinoPageViewGroup::m_sort_index.
| void CRhinoPageViewGroupTable::GetUnusedPageViewGroupName | ( | const wchar_t * | root_name, |
| ON_wString & | unused_group_name | ||
| ) |
Gets an unused page view group name.
| root_name | The name's root or prefix. |
| unused_group_name | The unused page view name. |
| void CRhinoPageViewGroupTable::GetUnusedPageViewGroupName | ( | ON_wString & | unused_group_name | ) |
Gets an unused page view group name.
| unused_group_name | The unused page view name. |
| bool CRhinoPageViewGroupTable::InPageViewGroupTable | ( | const ON_PageViewGroup * | group | ) | const |
Verifies a page view group exists in this table.
| group | A valid page view group. |
| bool CRhinoPageViewGroupTable::IsValidPageViewGroupTableIndex | ( | int | group_index | ) | const |
Verifies a page view group index is a valid index in this table.
| group_index | Zero-based page view group index. |
| void CRhinoPageViewGroupTable::ListTable | ( | ON_TextLog & | text_log, |
| unsigned int | level_of_detail | ||
| ) | const |
Table logging helper.
| bool CRhinoPageViewGroupTable::ModifyPageViewGroup | ( | const ON_PageViewGroup & | group, |
| const ON_ComponentManifestItem & | item, | ||
| bool | bQuiet | ||
| ) |
Modifies a page view group.
| group | The modified page view group. |
| item | Component index item of page view group to modify. |
| bQuiet | true to disable any warning or error messages. |
| bool CRhinoPageViewGroupTable::ModifyPageViewGroup | ( | const ON_PageViewGroup & | group, |
| int | group_index, | ||
| bool | bQuiet = false |
||
| ) |
Modifies a page view group.
| group | The modified page view group. |
| group_index | Zero-based index of page view group to modify. |
| bQuiet | true to disable any warning or error messages. |
| const CRhinoPageViewGroup* CRhinoPageViewGroupTable::operator[] | ( | int | group_index | ) | const |
Gets a page view group from the table.
| group_index | Zero-based page view group index. |
| const CRhinoPageViewGroup* CRhinoPageViewGroupTable::PageViewGroup | ( | const ON_ComponentManifestItem & | manifest_item | ) | const |
Gets a page view group by component manifest.
| manifest_item | The component manifest item. |
| const CRhinoPageViewGroup* CRhinoPageViewGroupTable::PageViewGroup | ( | const ON_ComponentManifestItem & | manifest_item, |
| const CRhinoPageViewGroup * | not_found | ||
| ) | const |
Gets a page view group by component manifest.
| manifest_item | The component manifest item. |
| not_found | The value to return if not found. |
| int CRhinoPageViewGroupTable::PageViewGroupCount | ( | ) | const |
| const CRhinoPageViewGroup* CRhinoPageViewGroupTable::PageViewGroupFromId | ( | ON_UUID | group_id, |
| bool | bSearchDeleted | ||
| ) | const |
Gets a page view group by id.
| group_id | The page view group id. |
| bSearchDeleted | Set true to search for deleted page view groups. |
| const CRhinoPageViewGroup* CRhinoPageViewGroupTable::PageViewGroupFromIndex | ( | int | group_index, |
| bool | bSearchDeleted | ||
| ) | const |
Gets a page view group by index.
| group_index | The page view group index. |
| bSearchDeleted | Set true to search for deleted page view groups. |
| const CRhinoPageViewGroup* CRhinoPageViewGroupTable::PageViewGroupFromName | ( | const wchar_t * | group_name | ) | const |
Gets a page view group by name.
| group_name | The page view group name. |
| const ON_ComponentManifestItem& CRhinoPageViewGroupTable::PageViewGroupManifestItemFromId | ( | ON_UUID | group_id, |
| bool | bSearchDeleted | ||
| ) | const |
Gets a component manifest item by page view group id.
| group_id | The page view group id. |
| bSearchDeleted | Set true to search for deleted page view groups. |
| const ON_ComponentManifestItem& CRhinoPageViewGroupTable::PageViewGroupManifestItemFromIndex | ( | int | group_index, |
| bool | bSearchDeleted | ||
| ) | const |
Gets a component manifest item by page view group index.
| group_index | The page view group index. |
| bSearchDeleted | Set true to search for deleted page view groups. |
| const ON_ComponentManifestItem& CRhinoPageViewGroupTable::PageViewGroupManifestItemFromName | ( | const wchar_t * | group_name | ) | const |
Gets a component manifest item by page view group name.
| group_name | The page view group name. |
| void CRhinoPageViewGroupTable::SetRemapIndex | ( | int | group_index, |
| int | remap_index | ||
| ) |
Sets a page view group's remap index.
| group_index | Index of a existing page view group in this table. |
| remap_index | Remap index. |
| void CRhinoPageViewGroupTable::SetUnusedPageViewGroupName | ( | const wchar_t * | root_name, |
| ON_PageViewGroup & | group_to_name | ||
| ) |
Sets a page view group's name to an unused name.
| root_name | The name's root or prefix. If nullptr, "PageViewGroup" is used. |
| group_to_name | The page view group to assign a unused name. |
| void CRhinoPageViewGroupTable::SetUnusedPageViewGroupName | ( | ON_PageViewGroup & | group_to_name | ) |
Sets a page view group's name to an unused name.
| group_to_name | The page view group to assign a unused name. |
| void CRhinoPageViewGroupTable::Sort | ( | int(*)(const CRhinoPageViewGroup *, const CRhinoPageViewGroup *, void *) | compare, |
| int(*)(const CRhinoPageViewGroup *, void *) | cull, | ||
| void * | ptr = nullptr |
||
| ) |
Use this to set CRhinoPageViewGroup::m_sort_index so that the values of CRhinoPageViewGroup::m_sort_index are from 0 to PageViewGroupCount() - 1, and compare(table[i], table[j]) < 0 ) implies that table[i].m_sort_index < table[j].m_sort_index.
| compare | Compare function that returns: <0 : arg1 < arg2 0 : arg1 = arg2 >0 : arg1 > arg2 |
| cull | Optional culling function that returns true if the page view group should be ignored when sorting. Page view group that are ignored are not included in the list returned by GetSortedList(). Pass nullptr if you do not need to cull the list. |
| ptr | Pointer passed as last argument to compare() and cull(). |
| const class CRhinoDocTableReference& CRhinoPageViewGroupTable::TableReference | ( | ) | const |
| bool CRhinoPageViewGroupTable::UndeletePageViewGroup | ( | int | group_index | ) |
Undeletes a page view group that has been deleted by DeletePageViewGroup().
| group_index | Zero-based index of page view group to undelete. |
| bool CRhinoPageViewGroupTable::UndoModifyPageViewGroup | ( | int | group_index, |
| unsigned int | undo_record_sn | ||
| ) |
If the page view group has been modified and the modification can be undone, then UndoModifyPageViewGroup() will restore the page view group to its previous state.
| group_index | Zero-based index of page view group. |
| undo_record_sn | Undo record serial number. |
| bool CRhinoPageViewGroupTable::UnsortPageViewGroup | ( | int | pageview_group_index, |
| int | sort_index | ||
| ) |
|
friend |
|
friend |
1.8.17