Changeset 6141 for trunk/SECEDIT/SEC_layout.cxx
- Timestamp:
- 14/08/09 16:29:27 (3 years ago)
- Files:
-
- 1 modified
-
trunk/SECEDIT/SEC_layout.cxx (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/SECEDIT/SEC_layout.cxx
r5675 r6141 60 60 61 61 void SEC_segment::calculate_segment_size() { 62 alpha = ((get_region()->get_base_count()+1) / loop->get_circumfer ance()) * (2*M_PI);63 } 64 65 void SEC_loop::compute_circumfer ance(void) { // Calculates the circumferance of the loop by counting the bases of the loop62 alpha = ((get_region()->get_base_count()+1) / loop->get_circumference()) * (2*M_PI); 63 } 64 65 void SEC_loop::compute_circumference(void) { // Calculates the circumference of the loop by counting the bases of the loop 66 66 SEC_root *sroot = get_root(); 67 67 double dbs = sroot->display_params().distance_between_strands; 68 68 69 Circumfer ance = 0;69 Circumference = 0; 70 70 for (SEC_segment_iterator seg(this); seg; ++seg) { 71 71 SEC_region *reg = seg->get_region(); 72 72 reg->update_base_count(sroot); 73 Circumfer ance += reg->get_base_count() + 1 + dbs;73 Circumference += reg->get_base_count() + 1 + dbs; 74 74 } 75 75 } 76 76 77 77 void SEC_loop::compute_radius(void) { 78 compute_circumfer ance();79 setStandardSize(Circumfer ance / (2 * M_PI));78 compute_circumference(); 79 setStandardSize(Circumference / (2 * M_PI)); 80 80 } 81 81 … … 150 150 151 151 double dbs = get_root()->display_params().distance_between_strands; 152 double angle_between_strands = ( dbs / Circumfer ance) * (2*M_PI); //angle between two strands152 double angle_between_strands = ( dbs / Circumference) * (2*M_PI); //angle between two strands 153 153 154 154 SEC_segment *seg = strand_away->get_next_segment();
