systemcomposer.view.ViewArchitecture

View components in architecture view

Description

A view architecture describes a set of view components that make up a view. This class inherits from the systemcomposer.view.ViewElement class and implements the systemcomposer.base.BaseArchitecture interface.

Properties

expand all

Name of architecture derived from the parent component or model name to which the architecture belongs, returned as a character vector.

Example: name = get(objViewArchitecture,'Name')

Data Types: char

Control inclusion of referenced models, returned as a numeric or logical with values 1 (true) or 0 (false).

Example: included = get(objViewArchitecture,'IncludeReferenceModels')

Data Types: logical

Color of view architecture, returned as a character vector as a name 'blue', 'black', or 'green' or as a RGB value encoded in a hexadecimal string '#FF00FF' or '#DDDDDD'. An invalid color string results in an error.

Example: color = get(objViewArchitecture,'Color')

Description of view architecture, returned as a character vector.

Example: description = get(objViewArchitecture,'Description')

Example: set(objViewArchitecture,'Description',description)

Data Types: char

Component that owns view architecture, returned as a systemcomposer.view.BaseViewComponent object. For a root view architecture, returns an empty handle.

Example: parentComponent = get(objViewArchitecture,'Parent')

Array of handles to the set of child components of this view architecture, returned as an array of systemcomposer.view.BaseViewComponent objects.

Example: childComponents = get(objViewArchitecture,'Components')

Object Functions

addComponentAdd component to view given path
removeComponentRemove component from view
createViewComponentCreate new view component
Introduced in R2019b